I have this executable that queries a remote server for a command, executes it on the local machine and returns the stdout (and also possibly stderr) from it back to the server.
This executable runs just fine if called from the command line (as root), but I found it's failing for some commands when executed automatically by the cron job.
What are the differences in terms of environment (users, stdin, stdout, etc.) I should expect when scheduling this executable to run periodically using crontab?
Thanks!