Re: Cron question

From: Boris Šavc (boris.savc_at_odis-info.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 11:42:15 +0200


"Laurenz Albe" <albe@culturallNOSPAM.com> wrote in message
news:ci3p4k$m7i$3@at-vie-newsmaster01.nextra.at...
> "Boris ?avc" <boris.savc@odis-info.com> wrote:
> > I have a procedure that works fine from command line, but doesn't in
cron or
> > with at command.
>
> You have provided too little information.
>
> - What exactly is the command line?
> - What exactly is the crontab entry?
> - does the crontab belong to the same user that issues the command line?
> - If you don't redirect standard output|error to /dev/null in the
> crontab, what e-mail does that user get (if cron is set up
> accordingly).
>
> Yours,
> Laurenz Albe

The command line is the same as cron entry: /PATH-TO/SCRIPT, the user is the
same, but if I do the standard input/output to /dev/null then script doesn't
work - not even from the command line - it never ends!! (I have to finish it
with CTRL-C).

Boris



Relevant Pages

  • Re: Running DBI, ODBC in the crontab
    ... Run the following lines in both the command line and crontab: ... Any of the paths that are missing in cron ... This communication is issued by UBS AG or an affiliate by the ...
    (perl.dbi.users)
  • SUMMARY: cron entry: nth day of every month?
    ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
    (Tru64-UNIX-Managers)
  • Re: Cron job question
    ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)
  • Re: [opensuse] Re: cron problems
    ... The exception is when your crontab line starts ... your ipdetect cron job really works, you might want to turn off job start ... Your crontab syntax itself is OK, ... userid in it, before the command, has just the command. ...
    (SuSE)
  • Re: Cron Job
    ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
    (comp.os.linux.misc)

Loading