avatar
A question about cron job# Unix - 噫吁兮,危乎高哉
q*c
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?
avatar
m*e
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?

avatar
q*c
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
avatar
q*t
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!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。