|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Every week, I need to update an environment variable that tells script the date of the end-of-week. This is then read by a Perl script using:
Quote:
Problem is, if the script is run as "nobody", how on earth can I set this variable, and who do I log on as to do it ? My workaround at the moment is to remember to manually edit the script ![]() |
|
#2
|
|||
|
|||
|
Toughy
Thats a toughy. The cron'ed job would , when spawned, pick up any settings in the users shell config file that the job was cron'ed under. So, if that user uses bash, you could make a setting in the .profile file for that user, and theoretically the job would pick it up.
I would just make a file in /etc that has the configuration directives in it. The job can read that in and rock out. Josh |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Environment values when run via cron? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|