Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl & cron job environmental variables

by djp (Hermit)
on Jul 03, 2007 at 03:33 UTC ( #624585=note: print w/replies, xml ) Need Help??


in reply to Perl & cron job environmental variables

You might like an explanation of what's happening here. By default, csh reads your .cshrc file, unless the -f switch is specified. That's why your environment is populated for the csh script but not for the Perl script. It's good practice in csh scripts to specify '#!/bin/csh -f' on the shebang line, to prevent reading .cshrc. It's better practice to avoid csh scripts altogether, see http://www.faqs.org/faqs/unix-faq/shell/csh-whynot for details.
  • Comment on Re: Perl & cron job environmental variables

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624585]
help
Chatterbox?
[choroba]: Good morning!
[choroba]: Still no ambrus?
[karlgoethebier]: good morning!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-06-26 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (573 votes). Check out past polls.