| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Oct 04, 2010
Posts: 9
![]() |
Hello everyone!
I'm not sure if this is the right place to put this, but here goes. I want to automate things a bit on my home network so that way I don't have to spend a lot of time doing it myself. What I want to do is simple: 1). Have the computer shutdown at 1:00 AM Sunday-Friday Saturday, I want it to shutdown at 3:00 AM 2). I want to run the Apple Updates at 1:00 AM on Saturday morning without any user intervention. 3). After the Apple Updates, I want the computer to restert, so let's say it should restart at 2:00 AM. Then, I would have the computer shutdown at say, 3:00 AM. I've written the shell scripts, and they work; I've tested them. No problems there ... at least not that I know of. I've used CronniX to schedule the tasks to run at the designated times. The scripts are invoked, HOWEVER, they prompt for a password as they all need to be in superuser, or root mode. I'm stuck. How do I accomplish that. I thought about modifying the root's crontab, but I can't find that. I tried modifying the sudoers file, which was disasterous (thank God for Time Machine). Any help would be appreciated. I'm running SL 10.6.4 with the latest updates. Thanks for your time, patience and help. |
| QUOTE Thanks | |
![]() Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,074
![]() ![]() ![]() ![]() ![]() Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3
|
|
| QUOTE Thanks | |
![]() Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,074
![]() ![]() ![]() ![]() ![]() Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3
|
|
| QUOTE Thanks | |
![]() Member Since: Oct 04, 2010
Posts: 9
![]() |
The only input that the users have right now is the password, which is what I'm trying to work around. I don't want them to enter a password.
So, would I still write the Applescript, and how would I go about doing that, if that were to be the option I would choose? Maybe I'll try editing my sudoers file again, and do that i visudo so that it can change the appropriate parameters. Cron does seem like it would be easier than launchd. But the other thing I'm trying to achieve is that the scripts run regardless of whether or not the user is logged in. Thanks again for your patience, and help. I'm kind of a dunce when it comes to this stuff ... even though I know it can be done. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Creating new Admin account via terminal | Gotsteve2006 | OS X - Operating System | 1 | 09-17-2008 08:34 AM |
| Launching Shell Scripts using the mouse | johncpvt | OS X - Apps and Games | 0 | 07-10-2008 02:18 PM |
| Shell scripts run slow on my Macs | brettgrant99 | OS X - Development and Darwin | 3 | 06-22-2006 09:58 AM |
| second admin account? | euangel | OS X - Operating System | 0 | 11-24-2003 11:42 PM |
All times are GMT -4. The time now is 12:44 AM.
Powered by vBulletin