C:\Users\Corion\Projekte>perl -w tmp.pl remote>rm /tmp/test.txt remote>ls -altr /tmp/test.txt ls: File not found: /tmp/test.txt remote>perl -MPOSIX=setsid -wle 'close STDIN;open STDOUT,">","/dev/null";$SIG{HUP}="ignore";fork and exit;setsid;sleep 3; open my $fh, ">", "/tmp/test.txt" or die $!' Filehandle STDIN reopened as STDOUT only for output at -e line 1. remote>ls -altr /tmp/test.txt ls: File not found: /tmp/test.txt remote>ls -altr /tmp/test.txt ls: File not found: /tmp/test.txt remote>ls -altr /tmp/test.txt -rw-r--r-- 1 corion corion 0 Jun 16 18:49 /tmp/test.txt