M mehdies macrumors member Original poster Jun 10, 2012 41 0 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 Aug 9, 2009 11,465 9,711 A sea of green 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
M mehdies macrumors member Original poster Jun 10, 2012 41 0 Mar 12, 2013 #3 Thanks chown33.going for test!