q*c 发帖数: 1172 | 1 Hi
I try to run some csh scripts as crontab jobs.
seems the .cshrc file was not invoked first when
the crontab job was executed, then some env variable
and commands in the csh scripts were not recognized
and the csh script can not run.
Any idea? |
m*****e 发帖数: 4193 | 2 thats the right behavior
【在 q*c 的大作中提到】 : Hi : I try to run some csh scripts as crontab jobs. : seems the .cshrc file was not invoked first when : the crontab job was executed, then some env variable : and commands in the csh scripts were not recognized : and the csh script can not run. : Any idea?
|
q*c 发帖数: 1172 | 3 But even if i add "source ~/.cshrc" in my csh scripts,
the csh script still can not run. YU MEN!
【在 m*****e 的大作中提到】 : thats the right behavior
|
q*******t 发帖数: 29 | 4 do you have
#!/bin/csh -f
at the head of your script ?
【在 q*c 的大作中提到】 : But even if i add "source ~/.cshrc" in my csh scripts, : the csh script still can not run. YU MEN!
|