 |
 |
Need help with a very simple shell script...
|
 |
|
 |
|
Clinically Insane
Join Date: Dec 1999
Status:
Offline
|
|
I'm using Bombich's Login Window manager software to help create a custom login message for students to "Sign In" before using the computers. I then wanted to put a shell script on log out that just pops up a message that says "Please remember to sign out."
Can someone point me to (or maybe just make one?) a script that does that? Just pops up a dialog window with a custom message and an OK button before the computer logs out.
Thanks a bunch.
|
|
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
*knuckles crack*
Code:
osascript -e 'tell app "System Events"' -e 'beep' -e 'display dialog "Remember to Sign Out"' -e 'end tell'
This all has to be on one line, and I am not sure how it is going to like being part of a logout script... but it is start.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Dec 1999
Status:
Offline
|
|
I'll give it a shot, thanks.
Originally posted by larkost:
*knuckles crack*
Code:
osascript -e 'tell app "System Events"' -e 'beep' -e 'display dialog "Remember to Sign Out"' -e 'end tell'
This all has to be on one line, and I am not sure how it is going to like being part of a logout script... but it is start.
|
|
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Dec 1999
Status:
Offline
|
|
|
|
|
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Dec 1999
Status:
Offline
|
|
Hah, nevermind. I didn't realize you could make a script in any script language.
Thanks, it worked. 
|
|
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Actually, both the Bombich scripts and Larkost's are written in the same shell language. Larkost's just calls the osacript AppleScript interpreter.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |