#!/bin/perl @ARGV or die "Usage: nohup command [args...]\n"; $SIG{HUP} = 'IGNORE'; exec @ARGV or die "Couldn't exec $ARGV[0]: $!\n";