in reply to Re^3: Run Perl script in perl program with new process group
in thread Run Perl script in perl program with new process group
i need to make the process (my $cmd = qq{nohup ./perl.pl};) a daemon process. if i remove the &, it remains connected with the shell and i cannot disconnect the script.
I have tried to start my script in background and starting process without &. It works but the ppid(20753) is still connected to shell which is closing on the logout.
$ ps -ef -o "user,pid,ppid,pgid,args" | grep perl.pl
userid 22542 20753 22542 /usr/bin/perl ./perl.pl
Is there anyway i can change the ppid of this process to 1 without loggingout for the session.