Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-24-2006, 01:45 PM
marcusororleeus marcusororleeus is offline
Registered User
 
Join Date: Jul 2006
Posts: 2
SD scripting with admin passwords

I'm trying to use SuperDuper to backup our OS X Server. To be safe, I want to stop down all server services running in Server Admin before I do the backup, and restart them after the backup.

I know SuperDuper can do shell scripts, but I only know how to stop services using Applescript (tho the Applescript does trigger shell scripts). How would I write the following applescript purely in shell script style:

Code:
do shell script "serveradmin stop afp" password "ourpassword" with administrator privileges
delay 10
do shell script "serveradmin stop mail" password "ourpassword" with administrator privileges
delay 10
do shell script "serveradmin stop print" password "ourpassword" with administrator privileges
delay 10
do shell script "serveradmin stop web" password "ourpassword" with administrator privileges
delay 10
Any ideas?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Acc. Passwords On Clone changed? slickmrick General 2 06-27-2006 05:55 PM
Sandbox won't recognize previous users & passwords tdsg General 1 01-08-2006 07:05 PM
Scripting and the Log edoates General 5 07-27-2005 06:39 PM
Shell scripting rik17 General 9 07-15-2005 11:08 PM


All times are GMT -4. The time now is 05:52 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.