Date: Sun, 15 Aug 2004 00:04:21 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 406 ************************************************** Saturday 14 August 2004 Number 406 ************************************************** Subjects for today 1 Re: perl and detaching : Dave Saville" 2 Re: perl and detaching : Henry Sobotka **= Email 1 ==========================** Date: Fri, 13 Aug 2004 15:23:28 +0100 (BST) From: "Dave Saville" Subject: Re: perl and detaching On Fri, 13 Aug 2004 07:57:54 -0400, Henry Sobotka wrote: >Dave Saville wrote: >> I think building perl from source with the build system has broken >> OS2::Process >> >> use OS2::Process; >> $pid = system(P_PM+P_BACKGROUND, "epm.exe"); >> >> gives can't exec "5" no such file or directory. >> >> See >> >> http://www.daimi.au.dk/Manuals/perl/os2/OS2/Process/Process.html >> > >Somewhere between 5.6.1 and 5.7.2 that example was changed to: > >$pid = system(P_PM | P_BACKGROUND, "epm.exe"); > >(see perl/lib/[version]/os2/OS2/Process.pm) Thanks Henry - Magic it works now. All I have to do is work out the correct flags :-) I found the URL I quoted by a google search. I never have much success with perldoc because it seems to me you have to know what you wanted before you start looking. I have not found things I *know* are in there - hence the google search. For John. I was not actually trying to run epm - that was the example from the web page I quoted. What I am actually trying to do is write a perl script that will stop pmmail, do something else and then restart it. The first, heavy handed, is just a kill -9 but the restart had me stumped. -- Regards Dave Saville **= Email 2 ==========================** Date: Fri, 13 Aug 2004 13:26:37 -0400 From: Henry Sobotka Subject: Re: perl and detaching Dave Saville wrote: > > I found the URL I quoted by a google search. I never have much > success with perldoc because it seems to me you have to know what you > wanted before you start looking. I have not found things I *know* are > in there - hence the google search. There's a perl_inf.zip in IlyaZ's distribution of 5.8.2 at http://www.cpan.org/modules/by-authors/id/ILYAZ/os2/582+/ h~