Re: Cron script to call funciton

From: Alexis Huxley (ahuxley_at_gmx.net)
Date: 08/06/04


Date: Fri, 6 Aug 2004 16:54:58 +0200


> I've created a function that works great during run time, but fails when I
> call it from a cron job. Does anybody know how I can get this to work? If
> you'd like to provide a link to some good reference material regarding
> running funcitons in batch - that'd be good too.

You're not making it very easy for people to help you; post the script,
or better still the smallest extract of the script that still causes
the error. Post the error message or describe the error. Post the
command line you use to invoke it, successfully from the shell prompt,
and unsuccessfully from cron.

Alexis



Relevant Pages

  • 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)
  • Re: How can I run cron job at 12o clock every night on my RH Linux machine?
    ... > How can I run cron job in Linux, I need to run some job automatically ... > every night at 12'o clock on my RH Linux machine. ... These four commands I need to place in that script. ...
    (comp.os.linux.misc)
  • Re: Cron jobs run out of memory?
    ... > (the script is attached to this e-mail). ... > cron job has failed, but running the program manually worked fine: ... -/+ buffers/cache: 169532 346776 ... Swap: 497968 274256 223712 ...
    (Debian-User)
  • Re: CRON or HTTP?
    ... or as an Apache module, there will be more information in $_SERVER. ... a script can be run from BOTH a cron job and a HTTP request: ...
    (comp.lang.php)
  • Re: script doesnt work when run as cron job
    ... >It should be mailed to you (or root, or whoevers' cron job it is). ... Earlier you posted this bit of script: ... >and this extract from the log files: ... Attempting to start rsync ...
    (comp.unix.shell)