On Fri, Oct 11, 2002 at 06:50:00AM +0100, mike wrote:
> On Fri, 2002-10-11 at 05:36, Michael Fowler wrote:
> > On Fri, Oct 11, 2002 at 04:16:41AM +0100, mike wrote:
> > > Unfortunatel chdir does not work
> > 
> > In what way doesn't it work?  Are you getting an error?  How are you
> > verifying it doesn't work?
> 
> no errors but directory does not change
> with use script and -ww all I get is my output from a die statement

You get output from your die statement?  So, the script dies with the error
"cannot change on line ..."?  If that's the case, that's an error; include
$! in your die and that'll tell you why the chdir failed.

Also, that's the second time you've used -ww, so I'm thinking it isn't a
typo.  Only one -w is necessary.

 
> > What do you see when you print $dir4?
> 
> the previous directory ie: not changed

Ok, this would imply the die is never being called, i.e. chdir never fails.

So, let's clear this up; does your die ever get called?


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to