On Mon, Apr 02, 2001 at 10:58:23PM -0700, Harry Putnam <[EMAIL PROTECTED]> wrote:
| I'm getting an error message from a shell script that has been working
| for a long time. Tinkered with it and now get an error message I
| don't understand.
| I'm not going to post the whole script, its a bit long and I know this
| works when run from the command line. However when run from cron I
| get the error message
|
| "I/O possible line 49...."
[...]
| I only show it here so you can see what line 49 is. The command is
| fomulated correctly and works from the command line.
| I think it is realy something else giving the error.
|
| Makes me think it is some kind of ENV setting because it acts different
| when run from cron. Some clue as to what `I/O possible' is trying to
| tell me will probably solve this.
Another possibility is that your script is dependent upon running on
a terminal. Cron jobs do not have a controlling terminal, nor do they
have a tty attached to any inputs or outputs.
Suggestion: this will be tedious, but run "strace -f" on your script
in the cron, like:
0 * * * * /usr/bin/strace -f the-shell-script 2>$HOME/strace.out.$$
This will produce MUCH output. However, you can then bring it up in "less"
and search for your error message. Examine the system called immediately
preceeding it - they should show you what it was trying to do at the time.
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
WFO: the normal throttle position for Denizens, squids, and unfortunates on
50cc Honda step-throughs.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list