• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crontab message to user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Crontab message to user (From: Dan Ball <email@hidden>)

  • Prev by Date: Re: OSA Error as Applet but not in Script Editor
  • Next by Date: Re: find a string in a file
  • Previous by thread: Re: Crontab message to user
  • Next by thread: Re: Crontab message to user
  • Index(es):
    • Date
    • Thread