Results 1 to 5 of 5

Thread: Shutdown command show warnning message

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Post Shutdown command show warnning message

    hello
    I need to shutdown all my computer in my network at 4:30 pm
    I can use cron job for that but i need to send message to users at 4:28 tell hime that "the computer will shutdown after 2 minutes "
    is there is any way to do that ?
    thanks

    Ahh !!! I use ubuntu jaunty

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 808 Times in 511 Posts
    Rep Power
    10

    Default

    Use wall command in a script and call it from your script or cron
    Code:
    wall <<EOF
    the computer will shutdown after 2 minutes
    EOF
    shutdown command itself has an option:
    Code:
    shutdown TIME MESSAGE
    To shutdown computer at 6:45pm, enter:
    Code:
    shutdown -h 18:45 "Server is going down for maintenance"
    How to use shutdown command under Ubuntu Linux
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    ok
    but that will display message in terminal
    but i need to display message in x window(Gnome)

  4. #4
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 808 Times in 511 Posts
    Rep Power
    10

    Default

    Use notify-send or zenity command to display message to gnome or kde GUI.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  5. #5
    Junior Member wire's Avatar
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Thumbs up

    yes.. i made it too.

    thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Solved] Show Hidden Files By Default In Ubuntu
    By vamsi in forum Ubuntu / Debian
    Replies: 7
    Last Post: 30th December 2009, 05:56 PM
  2. Shell Script To Show Progress Indicators / Dots While Making The Backups
    By rockdalinux in forum Getting started tutorials
    Replies: 2
    Last Post: 9th October 2009, 01:00 AM
  3. Samba PDC with Openldap--getent fails to show ldap accounts
    By nixcraftraj in forum Novell Suse / OpenSuse
    Replies: 0
    Last Post: 10th August 2009, 06:19 PM
  4. Replies: 2
    Last Post: 13th February 2009, 12:57 AM
  5. Unexpected shutdown
    By ammaro in forum Linux software
    Replies: 2
    Last Post: 23rd April 2007, 12:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •