Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: System command from crontab

by vitoco (Friar)
on Dec 07, 2009 at 13:24 UTC ( #811502=note: print w/replies, xml ) Need Help??


in reply to System command from crontab

Is the first field of the following crontab line ok?

crontab: /1 * * * * /root/scripts/perf/test.pl > /tmp/test.txt 2>&1

I mean, "/1" should be "*/1", but that is the same as "*"!!!

BTW, as it was said, not every environmental variables you can see in your terminal session are available from within crond deamon. Although cron command could save some of them for your script, you must set all your required environmental variables at the beginning of the script or crontab file.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811502]
help
Chatterbox?
[Lady_Aleena]: shmem, I need to look at MP3::Tag to see how to get the date from one song.
shmem sticks himself into the envelope. gn.(1<<3) all
[Lady_Aleena]: Good night shmem.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-04-23 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.