RE: survive with exec




What operating system are you running, and how important is the return
code to you?

If you are using Windows, for example, you can use the start or call
commands along with system() to spawn a process and immediately return.
The only problem is that you won't be able to check the return code,
because it will only indicate whether or not the shell was able to
execute the program.



-----Original Message-----
From: a b [mailto:testabhi@xxxxxxxxx]
Sent: Monday, February 27, 2006 5:01 AM
To: beginners@xxxxxxxx
Subject: survive with exec

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/bin/perl
$a=1;
while($a)
{
$a=1;
}

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.

any idea ???



Thanks

a b

.



Relevant Pages

  • Re: survive with exec
    ... The Os was windows and use of start along with system is working fine. ... i want to execute some batch/perl file from my perl program and continue ...
    (perl.beginners)
  • survive with exec
    ... i want to execute some batch/perl file from my perl program and continue to ... do some changes and then re-execute some files. ...
    (perl.beginners)
  • Useing Perl With C to Read From Executable
    ... Okay. ... I am working on a small operating system called MOSS (mini ... some of you may know C has no way to read executeable code and execute ...
    (comp.lang.perl.misc)
  • Re: cs register and win32
    ... >and I have always thought that operating system use a far pointer to ... >execute the same code, and i've discovered, differently from my ... that the CS register was the same for both processes. ... covers the entire 4GB linear address range. ...
    (comp.lang.asm.x86)
  • Re: Computer will not power down
    ... Enquire, plan and execute. ... I am able to shutdown the operating system ... I have a call to tech support for the motherboard. ...
    (microsoft.public.windowsxp.help_and_support)