#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
Quote:
Ben |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
There's a thread right at the top of this forums that includes a shell script. It's a good example...
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |