I am running Solaris 8 trying to run a compiles executable. I am the sysadmin. One of our developers created the program.
The problem I have is.....I need to run the program as a cron job. AND it needs to run under the tcsh shell. This IS the default shell for the user running the cron job (not root).
I have tried wrapping ina script something like:
#!/bin/tcsh
/path/program
That runs fine interactively AND under the "at" command. HOWEVER....as soon as I try to run it as a user cron job it fails. I added "setenv" to the script and found that interactively and under "at" it is correctly using the tcsh shell. however when run as a cron job it is using /bin/sh.
Have I missed something? My understanding is that the first line of the script defines the shell.
Eda - cate Me
Thanks
The problem I have is.....I need to run the program as a cron job. AND it needs to run under the tcsh shell. This IS the default shell for the user running the cron job (not root).
I have tried wrapping ina script something like:
#!/bin/tcsh
/path/program
That runs fine interactively AND under the "at" command. HOWEVER....as soon as I try to run it as a user cron job it fails. I added "setenv" to the script and found that interactively and under "at" it is correctly using the tcsh shell. however when run as a cron job it is using /bin/sh.
Have I missed something? My understanding is that the first line of the script defines the shell.
Eda - cate Me
Thanks