Re: Freebsd + cron job +perl script



Patrick MARION a écrit :

Can you tell more about your script.

The first thing about difference between command line dand cron is about environment or perhaps STDIN.

Perhaps you can make a trace with several "print tracexxx" at several critical places in your script.

Without redirection to an explicit file all output of a cron script are routed with mail to the cron user.




FRANCIS PROVENCHER a écrit :
Hi all,
I'v add a perl script in my crontab (To execute with root rigth)
If i execute the perl script in command line, all work fine.
Here the log from /var/log/cron
*Nov 29 14:55:00 (NameOfTheServer) /usr/sbin/cron[16782]: (root) CMD (/root/Scripts/update.pl)*
Cron execute the job....
if i make the "top" command....;
*16785 root 1 8 0 6296K 5764K wait 0:01 0.00% perl5.8.8*
** The script stay in "wait" mode....
Some one can help me ton find why these script wont finish...
(I'v no error in /var/log/message)
Thanks for your help!

Francis Provencher
Ministère de la Sécurité publique du Québec
Direction des technologies de l'information
Division de la sécurité informatique
Tél: 1 418 646-3258
Courriel: Francis.provencher@xxxxxxxxxxxxxx <mailto:Francis.provencher@xxxxxxxxxxxxxx>
CEH - Certified Ethical Hackers
SSCP - System Security Certified Practitionner
Sec+ - Security +


.



Relevant Pages

  • Re: Nmon scheduling question
    ... command ran first then in the script is the ps and kill command so it ... Vince this is a great script. ... Cron Job with pid: 135238 Failed ...
    (AIX-L)
  • 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)
  • Script wont run from cron
    ... the command line, but the same script fails when running from cron. ... The /bin/sh script runs, but when it goes to fire up the indexing process, ... set, id and limits. ...
    (freebsd-questions)
  • 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)
  • Re: script wont execute from cron, but will from command line
    ... >> script, not shell script. ... T> All this works fine as long as I run it from the command line. ... It just won't execute from the cron. ...
    (comp.unix.aix)