I was having a simular problem with crons default being sh and wanting to be in csh. I found some where that you should be able to put a line such as SHELL = in your cron tab file but on my system, Solaris 9, this was not allowed. So the best I have found to do is to have the following as the 1st line in the script file cron calls
#!/usr/bin/csh
If it is just one command I want cron to do I do the following:
no idea, this is a very misterious setting,
even if you change the root login shell (in /etc/passwd,
was current in bsd-sunos) cron tries /bin/sh, mybe this
is hardcoded.
kymlyons suggestion is correct, this way you never
get problem.
an other possibility is use env in crontab:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.