Technical Q&A: Programmatically causing restart, shutdown and/or logout


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News Technical Q&A: Programmatically causing restart, shutdown and/or logout
# 1  
Old 01-25-2008
Technical Q&A: Programmatically causing restart, shutdown and/or logout

QA1134: Describes how to programmatically cause restart, shutdown, sleep or logout.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Logs & Lists to Save before httpd restart when web server freezes?

Hello... We keep having a problem with the httpd freezing and users getting time outs. I am not the Sys Admin but since I am the 1st one in, I have to restart the httpd server. Is there a list of items I should collect before I restart in order to help with trouble shooting? I currently... (3 Replies)
Discussion started by: djlerman
3 Replies

2. Linux

Delay gnome shutdown/restart

Hi to all. My first message here, but i following you via twitter feed from many time... The question: I need to delay 5-10 seconds the shutdown command executed when the user click on the power off/reboot in their session or at login screen. I need that because i have in the background a... (18 Replies)
Discussion started by: mendez
18 Replies

3. Shell Programming and Scripting

sftp + expect: disconnection & restart removes already transfered data.

I have an ftp statement that when it restarts, it will write over the top of the file at the other end, rather than append to the file part sitting at the destination. This is a problem because the flaky connection fails so regularly that the 2GB file I try to transfer will never complete. ... (2 Replies)
Discussion started by: rupert160
2 Replies

4. Emergency UNIX and Linux Support

Shutdown to a Halt and restart

I've got critical patching this weekend on 6 HP UX machines, back to back and the customer has requested to shutdown, and halt the machines and to bring it up at a later period. The thing is the servers are located offshore and we are just the support team. I have a special login thru a console... (16 Replies)
Discussion started by: hedkandi
16 Replies

5. Shell Programming and Scripting

Any key press causing logout from shell

Hi all! I have written a shell script which will invoke perl script infinitly in the background in a loop. Code will do as:Within while loop, perl script will be run in background, get the pid and notify pid in though mail. then wait for pid to be completed before going for next iteration. I am... (1 Reply)
Discussion started by: jramesh1
1 Replies

6. Solaris

Restart/Shutdown the Solaris from SC>

Hi Experts, I am running solris 9. Sun-Fire 880. How do i shutdowon the whole server using ALOM i.e sc> console. If the server is down or somehow hang How do i Restart from sc> //purple (6 Replies)
Discussion started by: thepurple
6 Replies

7. UNIX for Advanced & Expert Users

warnings @ system start & shutdown

Hi, I'm having this Ultra5 system with Solaris10 on it. And when its booting, I get this warning 3 times and the system wait a considerable amount of time there before proceeding. WARNING: add_spec: No major number for fp And when its shutting down, I get this: Shutdown: RPC: Program not... (1 Reply)
Discussion started by: chaandana
1 Replies

8. UNIX for Dummies Questions & Answers

logout/shutdown script

I am running JDictd (http://www.informatik.uni-leipzig.de/~duc/Java/JDictd/) from tcsh in Terminal on Mac OS X (:=Darwin=FreeBSD/Mach). I am trying to get it to exit cleanly silently upon Mac OS X system shutdown. My idea was that if there was a logout script in FreeBSD (basically a script... (1 Reply)
Discussion started by: ropers
1 Replies
Login or Register to Ask a Question
GNOME-SESSION-SAVE(1)					      General Commands Manual					     GNOME-SESSION-SAVE(1)

NAME
gnome-session-save - Saves or ends the current GNOME session SYNOPSIS
gnome-session-save [--logout] [--force-logout] [--logout-dialog] [--shutdown-dialog] [--gui] [--kill [--silent]] DESCRIPTION
gnome-session-save can be used from a GNOME session to save a snapshot of the currently running applications. This session will be later restored at your next GNOME session. The --gui option will report errors in dialog boxes instead of printing to stderr. If called with the --logout option, the current GNOME session will be ended, unless logging out has been inhibited by an application. The --force-logout option can be used to end the session regardless of the inhibition state. When the --logout-dialog option is given, the standard dialog displaying logout options is displayed. When --shutdown-dialog option is given, the standard dialog displaying shutdown options is displayed. The --kill and --silent options are deprecated. The --kill option is equivalent to the --logout-dialog option. If --silent is used with --kill, then it will behave as if --logout was used. The session is not saved when gnome-session-save is called with any of the options ending the session. SEE ALSO
gnome-session(1) BUGS
If you find bugs in the gnome-session-save program, please report these on http://bugzilla.gnome.org. GNOME GNOME-SESSION-SAVE(1)