perl fork



if( !fork ) {
 $SIG{HUP} = "IGNORE";
open STDOUT, ">", "/dev/null";
open STDERR, "&=STDOUT";
 exec "/usr/bin/mysql", $new_DB, "-h", "192.168.1.5", "-u", "user", "-ppasswd"
 }




No comments:

Other Articles

Enter your email address: