Re: crontab bash script failure

From: Barry Margolin (barry.margolin_at_level3.com)
Date: 06/06/03


Date: Fri, 06 Jun 2003 19:17:50 GMT

In article <3EE0E5B0.5D5D1849@lucent.com>,
Ed Morton <morton@lucent.com> wrote:
>
>
>Russ wrote:
>
>> I have a set bash scripts that that I am running as a cron job
>> (crontab). A top-level script steps through a series of directories
>> and runs another script in each directory.
...
>Try running it under "sh" from the command-line as that's what it'll run under
>as a cron job.

The only thing that automatically runs under sh is the command line in the
crontab file itself. If this command line executes a script, it uses
whatever shell or interpreter is specified in the #! line of the script.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • Re: rlogin via expect mysteriously aborts when run from cron
    ... I have an application which, at some point, executes a zsh script. ... When investigating the output which was sent to me from the cron job ... I had one case where even a command ...
    (comp.lang.tcl)
  • Re: Need some small help on shell script - delete old files
    ... I am using your script. ... recent dump is always left un-compressed with no .gz extension. ... or use the "wait" command to see if it must delay the start of the ... The second dump has to be coming from an alternate CRON job or an AT ...
    (comp.unix.shell)
  • rlogin via expect mysteriously aborts when run from cron
    ... I'm not sure whether this is a problem related to shell, ... I have an application which, at some point, executes a zsh script. ... When investigating the output which was sent to me from the cron job ... I had one case where even a command ...
    (comp.lang.tcl)
  • Cron entry & .profile question
    ... Cron jobs can be confusing at times. ... When I run a script I wrote from ... The bourne shell uses the command "." ... Should I run my cron job as root or should I make a new cron entry ...
    (SunManagers)
  • Re: crontab bash script failure
    ... >>I have a set bash scripts that that I am running as a cron job ... >>and runs another script in each directory. ... but I have no clue what is causing it to exit prematurely. ... I get an email from another cron job I have set up, ...
    (comp.unix.shell)