Re: Cron ?



On Wed, 22 Aug 2007, in the Usenet newsgroup linux.redhat, in article
<pan.2007.08.22.18.09.59.34740@xxxxxxxxxxxxxx>, Terry A Haimann wrote:

Is there something different about running a job in cron then there is
from a command prompt.

Uh, yeah - environment is very different, PATH is _probably_ different,
and then there's the bit about stdin/stdout/stderr...

I have a FreePascal created program that crashes when I run it from
cron, but works normally when submitted from bash. This program is
starting several other programs (If that makes any difference.)

Try creating a simple cron-job that consists of one line

set > /tmp/cron.environment

and then compare that file with the output of the 'set' command in a
shell.

[compton ~]$ wc /tmp/cron.environment
20 19 236 /tmp/cron.environment
[compton ~]$ set | wc
41 48 1422
[compton ~]$

Old guy
.



Relevant Pages

  • Re: command prompt environment settings
    ... > I have two questions regarding the command prompt environment settings ... I noticed that the environment settings for the INCLUDE and LIB ... most definitely can be set from the control panel. ...
    (microsoft.public.vstudio.general)
  • Re: command prompt environment settings
    ... > I have two questions regarding the command prompt environment settings ... I noticed that the environment settings for the INCLUDE and LIB ... most definitely can be set from the control panel. ...
    (microsoft.public.vc.language)
  • Re: command prompt environment settings
    ... > I have two questions regarding the command prompt environment settings ... I noticed that the environment settings for the INCLUDE and LIB ... most definitely can be set from the control panel. ...
    (microsoft.public.vc.ide_general)
  • Re: command prompt environment settings
    ... > I have two questions regarding the command prompt environment settings ... I noticed that the environment settings for the INCLUDE and LIB ... most definitely can be set from the control panel. ...
    (microsoft.public.vstudio.development)
  • Re: keyboard layout
    ... > OK I organized the files and folder. ... > I tried with build.exe but it answer with errors about no variables set. ... Build.exe needs to be launched from a build environment. ... A command prompt window pops up, with all the environment variables for your platform and project already set. ...
    (microsoft.public.windowsce.platbuilder)