http://www.perlmonks.org?node_id=439657


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:
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: $!";
No cron job needed.

Replies are listed 'Best First'.
Re^2: Unix process number on a mac...
by Anonymous Monk on Mar 15, 2005 at 21:22 UTC
    Mac OS X is BSD Unix, not SysV. There is no /etc/inittab.