|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
||||
|
||||
Two things. "shutdown -r" does a restart, not a shutdown.
Second, you need to make a plain text file, not an RTF file. And, it looks like you didn't make it executable with the 2nd command provided.
__________________
--Dave Nanian |
#4
|
|||
|
|||
Script Help
Again, I apologize for being such a novice, but I really don't know how to make/save an executable.
I rewrote the code and saved as plain text. I opened terminal and typed the code you supplied. I opened terminal and did the chmod command as supplied. But what is next? Nothing happens. I can save the text file, but it appears to be nothing but text. Do I save a terminal document instead? What kind? etc.? Sorry, but I guess I need hand holding and precise click by click instructions. Here is the log from my latest try. ..ACTION: Running shell script restartshellscript.txt | 08:20:12 AM | Info | ......COMMAND => Invoking After Copy shell script: /private/var/root/Desktop/restartshellscript.txt | 08:20:12 AM | Info | Copy complete. However, no restart occured. Waited 3-4 minutes, nothing. Thanks again, Scott Last edited by shorton; 01-08-2007 at 08:23 AM. Reason: update |
#5
|
||||
|
||||
Try running your restartshellscript.txt from the shell itself. The command would be:
Code:
/private/var/root/Desktop/restartshellscript.txt
__________________
--Dave Nanian |
#6
|
|||
|
|||
Script Help
Tried it, nothing happens.
Scott |
#7
|
||||
|
||||
Something must be wrong with what you put in the script, then. If you type:
shutdown -r now in Terminal, does your system reboot?
__________________
--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 |
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 |