|
#1
|
|||
|
|||
Script Help
I would like SuperDuper to run a script that reboots my computer from the same startup disk that it is currently running from after completion.
I know nothing about shell scripting. Anyone? TIA, Scott (My attempts to run a compile applescript have failed due to permissions problems, although I thought the permissions were fine.) The log reads: Error | sh: line 1: /Users/Shared/Restart.scpt: Permission denied |
#2
|
||||
|
||||
Any particular reason why you want to do that, Scott?
__________________
--Dave Nanian |
#3
|
|||
|
|||
Script Help
Yes.
This is a shared computer at our church. It boots itself every Sunday AM very early. SD runs as 'root' a few minutes after boot up. I could shut down the computer, but it is more convenient to have it up and running for either remote access early, or for the tech crew who comes in a couple hours later. However, when using SD like this, the system administrator is logged in despite the MacOSX login window being visible. This could present problems. So, if the computer where to reboot from the same startup disk after completion, then all would be OK. |
#4
|
||||
|
||||
OK. Try putting this in a text file:
Code:
#!/bin/sh shutdown -r +1 Code:
chmod +x the-file-you-saved
__________________
--Dave Nanian |
#5
|
|||
|
|||
Script Help
Actually, I want the computer to reboot, not shutdown. For a shutdown, couldn't I just do that via the SD interface itself?
Also, I tried something similar with terminal but got myself confused (novice here.) I saved code in TextEdit, then opened Terminal and did the chmod +x, hit return, and then dragged the saved file into terminal to set the path. However, does this do something to the text file itself? Or, do I have to save the terminal as something? Sorry for being so numb. scott |
#6
|
|||
|
|||
Script Help
Well, I tried to make a shell script, but I still really don't know what I am doing. I get the following error (same error when I tried to get SD to run a simple compiled applescript)
......COMMAND => Invoking After Copy shell script: /private/var/root/Desktop/Restart Shell Text.rtf | 10:46:11 PM | Error | sh: line 1: /private/var/root/Desktop/Restart Shell Text.rtf: Permission denied |
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 |
Do shell script erroring? | Budgie | General | 1 | 02-08-2006 04:50 PM |
Scheduled Custom Script Uses Wrong Script? | Dasman | General | 1 | 12-08-2005 01:55 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 |