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

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-13-2008, 08:09 PM
ben428 ben428 is offline
Registered User
 
Join Date: Jun 2008
Posts: 6
How do I create a shell script to log out?

Hello,

I'd like Superduper to log out the current user when it finishes, rather than shutting down the computer or any of the other available options. It seems like it should be relatively straightforward to create a "shell script" to do this and run it at the end of the backup under "Advanced." But I don't know anything about shell scripts. I do have some experience with Applescript, and tried to run an Applescript at the end of the backup, but got a "permission denied" error.

Can anyone help or point me to a resource on creating shell scripts that will work with SD?

Thanks

Ben
Reply With Quote
  #2  
Old 06-13-2008, 10:02 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Well, you could save your script as a compiled script, and then create a shell script that says:

Code:
#!/bin/sh
nohup /bin/bash -c "sleep 30; osascript path-to-your-script" &
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 06-14-2008, 07:38 AM
ben428 ben428 is offline
Registered User
 
Join Date: Jun 2008
Posts: 6
Quote:
Originally Posted by dnanian View Post
Well, you could save your script as a compiled script, and then create a shell script that says:

Code:
#!/bin/sh
nohup /bin/bash -c "sleep 30; osascript path-to-your-script" &
Thanks. Can you be a little more specific about how to create and save the shell script? Does it need to be named in a particular way? Do I need to save it in a particular place?

Ben
Reply With Quote
  #4  
Old 06-14-2008, 07:53 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
I'm trying not to do that, Ben, because I don't want to "do it all for you"... because then you won't really learn anything. (There are other threads on the forum that show how to do this kind of thing, and how to set permissions properly -- and there are also good resources on the web that explain what shell scripts are, and how they work.)
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 06-14-2008, 08:30 AM
ben428 ben428 is offline
Registered User
 
Join Date: Jun 2008
Posts: 6
Quote:
Originally Posted by dnanian View Post
I'm trying not to do that, Ben, because I don't want to "do it all for you"... because then you won't really learn anything. (There are other threads on the forum that show how to do this kind of thing, and how to set permissions properly -- and there are also good resources on the web that explain what shell scripts are, and how they work.)
Dave, before posting I spent quite a bit of time on the forum and elsewhere on the web trying to find an explanation of how to do this kind of this, and didn't find it -- that doesn't mean it isn't there, but the Internet is a big place. As I said in my original post, I'd be happy to have you point me to a good resource rather than laying it out for me.
Reply With Quote
  #6  
Old 06-14-2008, 08:35 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
There's a thread right at the top of this forums that includes a shell script. It's a good example...
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Booting from backup guruuno General 27 10-16-2009 11:53 PM
shell script before copy bthom General 3 11-10-2007 11:10 PM
Do shell script erroring? Budgie General 1 02-08-2006 04:50 PM
Error: No space left on device tradervic General 11 06-29-2005 04:50 PM
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 05:12 PM


All times are GMT -4. The time now is 01:18 PM.


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