Computing.Net > Forums > Unix > Preserving env variable inside perl

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Preserving env variable inside perl

Reply to Message Icon

Name: prekida
Date: October 7, 2005 at 06:03:18 Pacific
OS: Sun Solaris
CPU/Ram: 8/16G
Comment:

Hi,

I have shell script test.sh which calls
test.pl and i have test.sh running from crontab - now i am finding test.pl is loosing
all the environment variable.

I am trying to preserve environment variable on test.pl and i do have need to run test.sh from crontab which then invokes test.pl

Please advise
Your help is greatly appreciated

Thanks

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: October 7, 2005 at 12:01:47 Pacific
Reply:

classic, classic cron problem.
runs as user, but does not login as user.
Must set environment variables in test.sh

man 5 crontab
or man -s5 crontab


0
Reply to Message Icon

Related Posts

See More


get value of 200th field ... Unix script for 'sp_who'



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Preserving env variable inside perl

preserver ENV variable in perl www.computing.net/answers/unix/preserver-env-variable-in-perl/7187.html

Testing ENV variable www.computing.net/answers/unix/testing-env-variable/6731.html

export variables www.computing.net/answers/unix/export-variables/4403.html