Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 meditating upon the Monastery: (7)
As of 2015-11-26 05:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls