![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Description of Environments Supported By.... | zizu | UNIX for Dummies Questions & Answers | 2 | 02-20-2005 06:52 AM |
| Unix environments for MS Windows | Perderabo | Answers to Frequently Asked Questions | 0 | 02-06-2005 03:20 AM |
| Unix environments to fiddle around with | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 07-03-2003 10:53 PM |
| Declaring variable environments in .cshrc | v_sharda | UNIX for Dummies Questions & Answers | 2 | 09-23-2002 10:25 PM |
| setting environments | xNYx | Shell Programming and Scripting | 3 | 03-24-2002 10:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a user trying to execute a command,in crontab, which requires certain envrionmental variables to be set. He is using tcsh on a Solaris 7 system. I have created a hack by doing the following in the crontab entry...
0 0-23 * * * rsh localhost -l user /path/command This doesn't seem secure to me. Any suggestions will be greatly appreciated. SmartJuniorUnix [Edited by SmartJuniorUnix on 05-01-2001 at 01:52 PM] |
|
|||||
|
Not quite. You would have to do something like:
* * * * * source .profile ; /bin/your_command Some versions of cron (such as Vixie Cron which is the version running on most Linux machines) will also allow you to have entries such as: MYVAR="1" to set environment variables. Check the man page for your crontab to see if it is supported in your version. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|