Re: Crontab message to user
Re: Crontab message to user
- Subject: Re: Crontab message to user
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 23 May 2003 17:45:46 -0400
On Friday, May 23, 2003, at 09:38 US/Eastern, Dan Ball wrote:
Hi Everyone!
I was wondering if this is possible??
We have our machines shutdown every night at 11:00pm, we are currently
using
OS 9 which is easy to do.
We want to do this with OS X when we move to it. I have a Crontab to
/sbin/shutdown -h now at 11:00 everyday.
How could I get a GUI message to pop up saying at like 10:55pm to warn
a
logged in user that the system is going to shutdown at 11:00pm, please
save
all your work before that time.
Probably would be nice to let the user cancel it also!
Thanks,
Dan Ball
I have not tested with Crontab, but if you do a:
shutdown -h +10
the system will shutdown in 10 minutes from the time the command was
issued and it should probably send a message systemwide letting you
know it is going to shutdown.
It might not allow anybody else to login after that. (man shutdown)
If the message is not send via "Finder" use a script to activate
terminal ,it will certainly have a message issued on terminal telling
you how long until shutdown.
As for canceling, bummer, OS X does not have the "-c" option!
In any case , using "at" will probably do everything you want, but
canceling the shutdown.
Regards
Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.