Re: survive with exec

2006-02-27 Thread a b
te the program. > > > > -Original Message- > From: a b [mailto:[EMAIL PROTECTED] > Sent: Monday, February 27, 2006 5:01 AM > To: beginners@perl.org > Subject: survive with exec > > Hello , > > i want to execute some batch/perl file from my perl program and co

RE: survive with exec

2006-02-27 Thread Timothy Johnson
code, because it will only indicate whether or not the shell was able to execute the program. -Original Message- From: a b [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 5:01 AM To: beginners@perl.org Subject: survive with exec Hello , i want to execute some batch/perl file fr

Re: survive with exec

2006-02-27 Thread Jeff Pang
>exec ("wperl hang.pl >a.txt"); >exec ("wperl hang.pl >b.txt"); >exec ("wperl hang.pl >c.txt"); and,I'm a little strange here. if your first 'exec' is executed successfully,the main script process should be replaced with the exec call.In other words,the executing of 'wperl hang.pl >a.txt' shoul

Re: survive with exec

2006-02-27 Thread Jeff Pang
>exec ("wperl hang.pl >a.txt"); >exec ("wperl hang.pl >b.txt"); >exec ("wperl hang.pl >c.txt"); > hi, here I think you could fork the childs,and call the 'exec' in childs,it should be good for your purpose. for example, for (my $i=0;$i<3;$i++){ my $child = fork();die "can't fork $!" unless

Re: survive with exec

2006-02-27 Thread Bob Showalter
a b wrote: Here i want to execute one and then execute another but don't wait for previous command i.e.something in background but im unable to do it. see: perldoc -q 'How do I start a process in the background?' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

survive with exec

2006-02-27 Thread a b
Hello , i want to execute some batch/perl file from my perl program and continue to do some changes and then re-execute some files. my code is like st.pl - exec ("wperl hang.pl >a.txt"); exec ("wperl hang.pl >b.txt"); exec ("wperl hang.pl >c.txt"); hang.pl - #!/usr/b