Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-30-2012
Registered User
 
Join Date: Dec 2010
Location: Yugoslavia
Posts: 222
Thanks: 34
Thanked 9 Times in 9 Posts
Solaris cron and cd

I have a (stupid) question about cron. If 'cd' is used in cron script, do we have to 'cd' back to 'starting' dir at the end of script (for other scripts and programs to work)?
Sponsored Links
    #2  
Old 07-30-2012
Registered User
 
Join Date: Jul 2012
Location: San Jose, CA
Posts: 1,463
Thanks: 62
Thanked 527 Times in 461 Posts
No. Each cron job runs in a different shell execution environment.
The Following User Says Thank You to Don Cragun For This Useful Post:
orange47 (07-30-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron on Solaris not editing. nixhead Shell Programming and Scripting 16 12-13-2010 12:49 AM
Cron audit problem in Solaris 8 Mr.AIX Solaris 5 09-29-2010 02:26 AM
How to run CRON JOB IN SOLARIS ZONE ?? vijaysachin Solaris 3 11-04-2009 07:23 AM
Solaris 10 cron question BOFH Solaris 3 02-19-2007 03:50 PM
Cron in Solaris Macakongs2099 UNIX for Dummies Questions & Answers 2 08-10-2004 08:53 AM



All times are GMT -4. The time now is 08:03 AM.