Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

csh running from crontab

390 views
Skip to first unread message

Michael A. Dias

unread,
Aug 16, 1996, 3:00:00 AM8/16/96
to

I have a csh script on SunOS that runs fine interactively,
but does not fire from crontab. It's a csh script, which
I start with #!/bin/csh, but it still doesn't fire, and I
get no error indications. Any ideas?

Thanks

Kerr Tung

unread,
Aug 16, 1996, 3:00:00 AM8/16/96
to md...@alycia.andrew.cmu.edu
You can try to put "SHELL=/bin/csh" in /etc/default/cron. This will
cause cron to use /bin/csh to run cron jobs. But this may cause problmes
for some of the system Bourne Shell scripts.

Kerr

Cuong Q Tran

unread,
Aug 16, 1996, 3:00:00 AM8/16/96
to

Kerr Tung <td2...@tafmss4.bgm.link.com> writes:

>Michael A. Dias wrote:
>>
>> I have a csh script on SunOS that runs fine interactively,
>> but does not fire from crontab. It's a csh script, which
>> I start with #!/bin/csh, but it still doesn't fire, and I
>> get no error indications. Any ideas?

Or put this in your cron:
/bin/csh /path/to/script/script

Thomas Sippel - Dau

unread,
Aug 19, 1996, 3:00:00 AM8/19/96
to

In article <4v21mt$8...@hacgate2.hac.com>, md...@alycia.andrew.cmu.edu (Michael A. Dias) writes:
- I have a csh script on SunOS that runs fine interactively,
- but does not fire from crontab. It's a csh script, which
- I start with #!/bin/csh, but it still doesn't fire, and I
- get no error indications. Any ideas?

In the .cshrc files and its include bits, refrain from doing things like
stty which only work on a controlling terminal. use tty -s to find out if
some such is available.

Better still, start the script with #!/bin/csh - to suppress reading
the .cshrc file, if your csh allows that.

Thomas

--
*** Why not use metric units and get things right first time, every time.
* email: cma...@ic.ac.uk (Thomas Sippel - Dau)
* voice: +44 171 594 6904 (day), +44 171 594 6958 (fax), +44 171 385 6540
* snail: ICSTM, Computing Services, Kensington SW7 2BX, Great Britain

0 new messages