[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ProgSoc] Crontab weirdness?



This one's been bugging me for some time now.  We've been running our
daily/weekly backups via crontab. The OS is IRIX 5.3.

Occasionally, a seg fault(core dumped) occurs the moment crontab calls
the backup scripts. It's fine though when run manually. Apparently,
crontab runs everything using /bin/sh. Oringally, my scripts were
written in sh, and recently I rewrote them in csh. The seg faults were
happening way before this change though. The execution flow is
somethinglike this:

crontab -> admin (/bin/sh) -> backup (/bin/csh)

The 'admin' script calls 'backup' like this:

/pathname/backup > /pathname/backup.log 2>&1

and when I look at the resulting log, the first line is:

Segmentation fault (core dumped)

So it appears the seg fault occurs at the point where 'admin' calls
'backup', but I don't know why! Argh! All scripts are headed with
#!/bin/sh or #!/bin/csh as required.

If anyone could help out or provide some useful pointers then I'd
greatly appreciate it. TIA.


-myke

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>