0
votes
1answer
21 views

Closing - not killing - gedit instances via the terminal (to save changes)?

How can I close multiple instances of Gedit windows through the command line? Some of the windows may contain changes to documents. So, I would like to be prompted to save them or not. If I use ...
2
votes
1answer
47 views

What commands show pending/scheduled tasks in Terminal?

What commands can I use in Terminal to see pending or scheduled tasks for today or tomorrow. For example how can I detect pending system shutdown?
0
votes
0answers
18 views

Automatic shut down and reboot at specific time [duplicate]

I have an assignment that requires me to write a script that shuts down a server at 11pm and reboots it at 6am daily. So far, I have only written a command to shut it down but I do not know how to ...
2
votes
2answers
29 views

Stop process on power button press

I have an old ubuntu pc running a minecraft server, but I only want it on at certain times. I want to be able to turn it on and off using only the power button. I am able to turn it on, but to turn ...
3
votes
1answer
55 views

Confirm shutdown with Zenity?

I got this command which enables me to shutdown Ubuntu 13.10 directly from the keyboard (without needing to open a terminal and running something like sudo shutdown -h now): dbus-send --system ...
0
votes
0answers
27 views

how to display last error message after automatic shutdown [duplicate]

My computer is shutting down automaticly using the Bitcoin client during catching up with the blockchain stage. Sometimes after hours and sometimes after 30 minutes. It could be heat related. A second ...
0
votes
2answers
116 views

Why's this shutdown one-liner command not working

It works fine from terminal, but when called from a thread in python, it fails. history -d $((HISTCMD-1)) && echo 'password' | sudo -S shutdown -h 08:00 from python, here's what I did: ...
1
vote
1answer
175 views

Problems with shutdown from command line

Whenever I attempt to shutdown my dell inspiron 1545 laptop from the command line with sudo shutdown now I get the following error after the ubuntu shutdown screen closes: Could not get system ...
2
votes
1answer
216 views

How to shut down the 70+ systems by the one remote machine?

What ways are there to shut down a computer remotely? My desktop is running Ubuntu 12.04 desktop edition and when I try to shut it down remotely, it doesn't actually work. I used the command sudo ...
0
votes
1answer
41 views

what problem should/can I solve first?

I am currently running Ubuntu 13.04 x64 with brand new hard drive to replace a damaged component, on my 17.5 inch wide screen gateway laptop with mostly after market components. can not remember the ...
0
votes
1answer
208 views

Shutdown command history in terminal

The default terminal in Ubuntu (13.04) preserves previous commands in an iterable list, even from session to session. Same with Byobu terminal. But for some reason sudo shutdown .... is never ...
2
votes
2answers
124 views

Why do CLI and GUI methods for shutting down have different security measures?

CLI option for shutting down the system is sudo shutdown -h now This requires the user to give the administrator password, whereas shutting down via GUI doesn't require any password. Why does GUI ...
0
votes
0answers
282 views

Execute BASH script on shutdown [duplicate]

I have a KVM switch (Trendnet TK 409) that helps me switch between my Ubuntu laptop and Linux computer. The switch use a hotkey for switching (numlock+numlock). Unfortunatly, that only works on ...
0
votes
1answer
109 views

Computer shut down during resizing of drive, stuck!

Basically I was trying to resize my drive since I was low on disk space for the Ubuntu OS using a WUBI of Ubuntu 12.10(I believe that or 12.04). But my computer shut down in the process. Now when I ...
4
votes
3answers
4k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
3
votes
1answer
107 views

Gracefully close appications on shutdown

How to automatically close an application on shutdown (graceful close, not kill)? I try to call wmctrl -c "App" in powerbtn.sh, but it does not work. The same wmctrl command works perfectly when ...
9
votes
1answer
5k views

`shutdown -r now` command completely shutting down instead of restarting

Hi we've just installed Ubuntu 12.04 LTS onto a new server. It's on a SuperMicro X9SCA-f Motherboard . Now we're aiming to locate this in a remote server room - however when we execute a shutdown -r ...
1
vote
2answers
2k views

Transmission shutdown script for multiple torrents?

I have written a shutdown script for transmission. Transmission calls the script after a torrent download finishes. The script runs perfectly on my machine (Ubuntu 11.04 & 12.04). #!/bin/bash ...
63
votes
2answers
125k views

How do I restart /shutdown from a terminal?

How to shutdown the Ubuntu installed system and restart it by using terminal ?
13
votes
3answers
12k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
2
votes
1answer
962 views

problem with halt command to power off

I use Ubuntu 11.10. My problem is that I cannot power off the computer with sudo halt command. Ubuntu shutting down screen comes and stops at there (something like the pic below). I waited about 15 ...
5
votes
5answers
336 views

How can I add to a already running process an additional 'shutdown' command?

On a regular basis I forget to add && shutdown -h now to a long-running process. Is there any way to add a shutdown -h now command after the first command was invoked? It is not intended to ...
4
votes
3answers
1k views

How to shutdown/restart/suspend … without authentication or confirmation?

I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs. As when clicking the shutdown button, why it is not asking me for ...
21
votes
4answers
25k views

What is the proper terminal-way to shutdown?

I was trying to shutdown my PC through SSH. I executed sudo shutdown now The user was logged-out and Ubuntu starting turning off, but it froze at the last screen with the Ubuntu logo and the loading ...
8
votes
2answers
3k views

What is the command to open the shutdown dialog?

I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:
13
votes
4answers
941 views

Why does nothing happen when I click “Shutdown” from the “shutdown…” dialog?

I've been through all questions with the 'Shutdown' tag on this site - but this is different. I choose "Shutdown..." from the session menu. I then click "Shutdown" on the dialog that appears. ...
3
votes
1answer
396 views
6
votes
9answers
8k views

How to shut down the computer after a task has been completed?

I usually start a download before I go to school. Which command should I use to automatically make the necessary saves and turn off the computer after a particular task has been completed? (Say, ...
11
votes
3answers
7k views

How can I safely shutdown/reboot/logout KDE from the command line?

I am not talking about shutdown and reboot commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE ...