in reply to chdir not working

Hi,
could you please add code tags around the actual perl code? thanks.

Could be numerous reasons...
hmmm, does /vob/ios/sys/obj-ppc-c3750 exist?
if ( -d '/vob/ios/sys/obj-ppc-c3750') { chdir("/vob/ios/sys/obj-ppc-c3750"); } else { print "/vob/ios/sys/obj-ppc-c3750 does not exist\n"; }

You don't need all those chomps either. They are only necessary if the string contains a newline in the end - not the case for $ARGV[0] or for the other assignments.

you create and print $path, then you chdir to somewhere else. Is that intended? What is $path good for then?

Regards,
svenXY

Replies are listed 'Best First'.
Re^2: chdir not working
by amitrajvarma (Initiate) on Oct 07, 2007 at 14:24 UTC
    Hi c3750 directory exist, but script is not doing CHDIR Any way I can do it Thanks Amit