The Thursday 2004-07-08 at 22:03 -0500, C Hamel wrote:
I have set up several scripts, a couple of which are already hooked into cron & execute on schedule. A third script generates an error: /bin/sh Line 1: Permission denied
The script has the requisite '#!/bin/sh' as the first line w/no white space to the left & no blank line at the top. It doesn't matter what is in the script --I have tried changing the command-- it will not execute because of the 1st line. What is in the script is as follows: 'cinternet --interface-name=ppp0 -O' ...and execution by hand works.
Remember that a cron job does not inherit the same path (and environment) as an script running manually gets. Thus, either you set the path explicitly, or call every program by its full path and filename. Otherwise, you may use "#!/bin/sh -x" to produce a full info, line by line, of the script execution. -- Cheers, Carlos Robinson