spinoff of -- untethered child process [on unix w/special parameters]
<[email protected]> Thu, 4 Aug 2016 18:49:51 +0000
| Newsgroups | gmane.comp.lang.perl.active-perl |
|---|---|
| Message-ID | <20160804184951.QFZBL.110853.root@cdptpa-web10> |
I need to do the same on solaris but pass separate sets of parameters (ultimately quoted properly) one of which is a serialized var created using data dumper.
$taskserialized looks like this
$VAR1 = {
'TASKID' => '15459',
'RUNONCE' => 'yes',
'SERVER' => 'LOCALHOST',
'TASK' => 'CHECKCM',
};
so something like
system("perl", "tasker.pl", "$taskserialized");
but this call also needs to fork to the background
Using & as 4th parameter does not produce the desired results and passing one parameter system("perl tasker.pl $taskserialized &") does not pass $taskserialized properly
TIA for assistance.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs