[NTLUG:Discuss] Re: Discuss digest, Vol 1 #1139 - 9 msgs
Jack-I-Need-a-Job-Snodgrass
idiotboy+ntlug at cybermail.net
Wed Mar 20 10:36:37 CST 2002
depends on the script language, shell your running, user your running it
from, and how it's running ( cron or manually )
Give us an example as someone here will be able to figure it out.
Also... some scripts under some shells work like this.
start the script
new enviornment
do a cd /someplace
exit script
back to original enviormnet.
So... if you want a script to change to a directory, exit and
leave you in that new directory, you may be out of luck with
some scripts and some shells.
Basically... it all depends.
Give a more detailed example and we'll see what we can do.
jack
----- Original Message -----
From: "Carroll E. McCarroll" <carrollm at cat.savycat.com>
To: <discuss at ntlug.org>
Sent: Wednesday, March 20, 2002 9:56 AM
Subject: [NTLUG:Discuss] Re: Discuss digest, Vol 1 #1139 - 9 msgs
> Does anyone know how to change directories in a script file. I have used
> for example cd /var/whatever but it has no affect. I need to run a
> command from a specific directory on files contained there and using an
> absolute path does not work.
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list