I am seeing a bizarre behavior. The command works fine when called directly from prompt, but when invoked via cron, there is no output nor mail.
This works fine:
Now, I place the identical line in crontab file and the output file /tmp/ff does not get generated.
Inside script, i am running a pg_restore which dumps output to stdout. The usage of tee is the only way to cause it to go into a file.
Any idea here? Thanks