Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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: (6)
As of 2014-07-11 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (236 votes), past polls