Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
beloved monks,

i have the following line in my crontab:
# download syncs 10 04 * * * root /root/crons/downloadsyncs.pl

that script is supposed to connect to various stores, and download a file (using 'wget') from each one.

my problem is that it seems to enter the for-loop (that is iterating over the stores), and it does the first call to wget (via system()) just fine, but after having downloaded the required file, somehow doesn't continue - almost as if cron doesn't give control back to the script after the wget.
if i run my script in a terminal, everything works fine, so i guess it's a cron/perl interaction thing.
anyone know what i am overlooking?

Update: This is on Mandrake 9.1, and (although i couln't find it in the docs anywhere) all the other crontab lines have the username under which to run the command in front of it there, so i just did the same, and the program DOES run...

In reply to cron/perl interaction gotchas i am missing? by schweini

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found