Hello,

    "cd" does not work as expected in perl.
    use chdir instead and it will do what u want .

    ex : chdir  "dest_folder"          # go to directory
    system("ls ")                          # do what u want.
    chdir "orignal_folder"              # come back to orignal dir

Thanx
Madan


[EMAIL PROTECTED] wrote:
Hi All,

I'm pretty new to Perl. I was trying to write up a perl script that
can help set up my working env, for example, once log into Linux
server, run the perl script, it'll move to another folder and
configure some env variables.

I tried using
`cd dest_folder`                       or
system "cd dest_folder"           or
exec "cd dest_folder"

but after running script, the current folder doesn't change at all.
Anyone please shed some lights on this.


  


--
/home/madank/personal/signature.html MyselfThanx & Regards !!
from Madan
Interra Systems India Pvt. Ltd.
A10, Sec9,NOIDA Ph: 0120-2442273/4 Ext 137
             visit my homepage
           




Reply via email to