Re: survive with exec



Hello,

The Os was windows and use of start along with system is working fine.

Thanks & Regards
a b

On 2/28/06, Timothy Johnson <tjohnson@xxxxxxxxxxxx> wrote:


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: [opensuse] Who said Linux doesnot get Virus infections
    ... you can execute a screen saver if you test it. ... They're under the general "viruses" tag. ... A Linux system being used to protect Windows ...
    (SuSE)
  • Re: ?? Windows Registry corrupted
    ... Enquire, plan and execute ... including System Restore. ... This PC was running Windows XP Pro. ... It appeared as if it would repair the operating system, ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Trusting and testing unknown (or unfamiliar) executables
    ... Finally you mention completely bypassing the windows kernel by using ... assembler instructions at ring zero... ... > including any file deletion or modification, and any attempt to execute ... > Ring0 assembly code which bypasses the usual Windows protection traps. ...
    (alt.comp.lang.borland-delphi)
  • Re: Nearly undocumented NT security feature - the solution to executable attachments?
    ... Windows NT users cannot defend from e-mail borne malware, ... KH> Instead of boring you with a lesson on Windows NT security, ... execute access, like in Unix, is distinct from read ... KH> please note that, as I said earlier, this won't stop scripts (except batch ...
    (Bugtraq)
  • Re: Why does Microsoft never document threading right?
    ... which is a fast mutex (and has ... CRITICAL_SECTION structure is implemented internally on Windows. ... object does not allow only one thread at time to execute the same code. ... It protects data, not code. ...
    (comp.programming.threads)