Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: why my system call won't work?

by matija (Priest)
on Jun 12, 2004 at 17:04 UTC ( #363628=note: print w/replies, xml ) Need Help??

in reply to why my system call won't work?

The system call creates a subprocess. That subprocess changes it's current directory - but then it exits. You can't run cd in a subprocess and have it affect the parent - it would be a big security hole.

What you can do is run Perl's builtin chdir. That will do what you want.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://363628]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-10-25 00:24 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.