Hi
I have a script which I call from cron which causes another script to be run in the background:
#!/bin/bash
bash /usr/local/bin/generateOutput &
The script generateOutput simply echos a text string.
When called from the command line I see the output whether or not generateOutput is backgrounded. When called from cron, and generateOutput is backgrounded I do not get the resulting output emailed to me as I would expect.
Has anyone seen this before and can you suggest how to capture STDERR and STDOUT from generateOutput and return it to the cron?
Many thanks
Bookmarks