system(cd /home/tomer/temp) problem

2009-01-28 Thread tomer
after exectue the command system(cd /home/tomer/temp) I dont see the terminal change the direcotry? maybe the change is valid only in the script? how can i control seeing terminal direcotry with perl script ? Thanks Tomer -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: system(cd /home/tomer/temp) problem

2009-01-28 Thread Raymond Wan
Hi Tomer, tomer wrote: after exectue the command system(cd /home/tomer/temp) I dont see the terminal change the direcotry? maybe the change is valid only in the script? how can i control seeing terminal direcotry with perl script ? system might not be what you want. What it does

Re: system (cd ..)

2005-08-30 Thread David
I'm not sure, but putting a ; between the commands might work: system cd ..; pwd On Mon, 2005-08-29 at 18:06 +0300, Eliyah Kilada wrote: Hi, - I agree with u that a shell script is more appropriate, but how I can write regular expressions in this way ? ;-) Regards, Eliyah Jeff

Re: system (cd ..)

2005-08-30 Thread Chris Devers
On Mon, 29 Aug 2005, Eliyah Kilada wrote: - I agree with [you] that a shell script is more appropriate, but how can I write regular expressions in this way ? ;-) By typing them, naturally :-) In shell scripts, grep, sed awk are the common regex using tools; depending on what you're doing,

system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints the old directory name not the new one. In other words, the previous (cd) command hasn't taken its effect! Do anyone know why? Thanks And Best Regards, Eliyah

RE: system (cd ..)

2005-08-29 Thread Bob Showalter
Eliyah Kilada wrote: Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints the old directory name not the new one. In other words, the previous (cd) command hasn't taken its effect! Do anyone know why? Each call to system

Re: system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, How can I access a specific child process, such that I put all my system commands in one child process? Thanks alot Eliyah Bob Showalter wrote: Eliyah Kilada wrote: Hi, It seems that the following code gives unexpected results: system (cd $dir_name); system (pwd); --- this prints

Re: system (cd ..)

2005-08-29 Thread Jeff 'japhy' Pinyan
On Aug 29, Eliyah Kilada said: How can I access a specific child process, such that I put all my system commands in one child process? It sounds like you want a shell script rather than a Perl program. Or, perhaps you should figure out how to do things via Perl rather than calling the

Re: system (cd ..)

2005-08-29 Thread Eliyah Kilada
Hi, - I agree with u that a shell script is more appropriate, but how I can write regular expressions in this way ? ;-) Regards, Eliyah Jeff 'japhy' Pinyan wrote: On Aug 29, Eliyah Kilada said: How can I access a specific child process, such that I put all my system commands in one

system cd .. ; ??

2002-04-05 Thread Aman Raheja
Hi All Why can't I move to the parent directory using system cd ..; Actually cd command doesn't work at all with system !!! why ? Though I can do so by chdir(..); Is there a way to physically move to another dir, for eg. [aman@aman /usr/home/aman]$./pdir.pl [aman@aman /usr/home]$ Thanks

Re: system cd .. ; ??

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 09:29 , Aman Raheja wrote: Hi All Why can't I move to the parent directory using system cd ..; Actually cd command doesn't work at all with system !!! why ? note: 'system' invokes a 'sub shell' - and that sub shell changed directories - while the calling code