Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

In UNIX how does one execute the .profile in PERL running from CRON

by rcetnar (Initiate)
on Aug 10, 2001 at 16:39 UTC ( #103850=perlquestion: print w/replies, xml ) Need Help??

rcetnar has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to get the Oracle parameters from the .profile to be execute, when running the perl program from cron. Currently I am reading the .profile and doing ENV to change the environment setting for Oracle home, base, etc. Is there another way to execute the .profile so I get all system parameters for that user executing the Perl program through cron? I tried using the system function and that didn't work. Any help would be appreciated.

Originally posted as a Categorized Question.

  • Comment on In UNIX how does one execute the .profile in PERL running from CRON
  • Download Code

Replies are listed 'Best First'.
Re: In UNIX how does one execute the .profile in PERL running from CRON
by davorg (Chancellor) on Aug 10, 2001 at 16:47 UTC

    You include the profile execution in the command that you put in your crontab. Something like this will work:

    . /home/me/.profile && my_script
Re: In UNIX how does one execute the .profile in PERL running from CRON
by tilly (Archbishop) on Aug 10, 2001 at 19:39 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://103850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2021-04-19 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?