- or download this
$cmd="$scriptsdir/process_tar.pl $file >> /tmp/testlog &";
+
+
$pid=open(PID,"|$cmd");
- or download this
#!/usr/bin/perl
# file pid.pl
sleep 1; print "$0 PID: $$\n";
- or download this
#!/usr/bin/perl
...
my PID is 4465
PID returned by open: 4465
./pid.pl PID : 4466