Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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.

Comment on Re: why my system call won't work?

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 examining the Monastery: (5)
As of 2015-10-09 02:16 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls