D
Dave Saville
Trying to start a process as "fire and forget" ie I want the process
to just go off by itself and the invoking script to keep going and not
kill the invoked process when it exits.
Google around and it looks as if "system 'foo &'" should work. But
under OS/2 ECS it does not - even though, from the command line, "sh
foo &" from a sh prompt works as in *nix.
As an aside, "system foo&" with a "ps" in another window shows an
instance of sh with foo as child.
system "sh -c foo &" with a "ps" in another window shows *three*
instances of sh and one of foo in a straight chain of pids. Can't
figure why three and not two.
TIA
to just go off by itself and the invoking script to keep going and not
kill the invoked process when it exits.
Google around and it looks as if "system 'foo &'" should work. But
under OS/2 ECS it does not - even though, from the command line, "sh
foo &" from a sh prompt works as in *nix.
As an aside, "system foo&" with a "ps" in another window shows an
instance of sh with foo as child.
system "sh -c foo &" with a "ps" in another window shows *three*
instances of sh and one of foo in a straight chain of pids. Can't
figure why three and not two.
TIA