The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-01-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
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.