Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2015-07-30 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls