$pid = system("other.pl $IPaddress &"); #my $pidfile = "/home/ember/devices/$Macaddress/$pid.pid"; #open (FILE, "> $pidfile") or die "Can't open file $pidfile\n"; #close FILE;