in reply to Unix process number on a mac...
I don't know more about OSX than that it's a Unix system. Given that's a Unix system, the following ought to work:
No cron job needed.die "Not for (l)users!\n" if $>; open my $fh, ">>", "/etc/inittab" or die "open: $!"; print $fh "xx:2345:respawn:/path/to/your/program arguments\n"; close $fh or die "close: $!";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Unix process number on a mac...
by Anonymous Monk on Mar 15, 2005 at 21:22 UTC |
In Section
Seekers of Perl Wisdom