M mehdies macrumors member Original poster Mar 10, 2013 #1 I want to execute a shellscript as root once,i want this script execute when system restrats.how do this?
I want to execute a shellscript as root once,i want this script execute when system restrats.how do this?
chown33 Moderator Staff member Mar 10, 2013 #2 Use launchd. Specifically, make a plist for a LaunchDaemon. More specifically, read about the RunAtLoad key. Required reading: TN2083: Daemons and Agents launchd.plist man page
Use launchd. Specifically, make a plist for a LaunchDaemon. More specifically, read about the RunAtLoad key. Required reading: TN2083: Daemons and Agents launchd.plist man page