On Fri, 2002-10-11 at 09:14, Michael Fowler wrote: > 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? > Just to clarify - $dir4 only gets printed if I remove the die
When I add a print $dir3 it shows what it shows is this ../build.pl /root/cvs/esound # this the output of $dir3 / cannot change No such file or directory at ./build.pl line 13, <BLD_LIST> line 55. this is ls in same directory, as you can see esound is there [root@localhost cvs]# ls atk esound gnome-desktop gnome-vfs libglade librsvg bonobo-activation g2_build gnome-icon-theme gtk+ libgnome libwnck build1.pl g2buildlist gnome-mime-data gtk-doc libgnomecanvas libxml2 buildlist gail gnome-panel gtk-engines libgnomeprint libxslt buildlist1 glib gnome-session intltool libgnomeprintui libzvt build.pl gnome-applets gnome-terminal libart_lgpl libgnomeui linc build.sh gnome-common gnome-themes libbonobo libgtop ORBit2 eel gnome-control-center gnome-utils libbonoboui libIDL pango > > Michael > -- > Administrator www.shoebox.net > Programmer, System Administrator www.gallanttech.com > -- > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Linux, Gnome what more do you need http://www.redtux.demon.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]