Fedora :: Shutdown After A Command Completes Its Task?

Jun 11, 2010

I guess there is some bash shell trick to run poweroff when an other command is over, like let's say su -c 'yum update'.

Creating a shell script with these two commands, the one below the other, would be sufficient? I can't try it now.

View 5 Replies


ADVERTISEMENT

Ubuntu :: 10.10 Reboots Automatically As Soon As Shutdown Completes?

Dec 7, 2010

I've been googling my brains out looking for a solution to this. So far, nothing.

As the title suggests, every time I attempt to shut the computer down it instantly reboots the moment the internal fans stop whirring.

So far I've tried:

-shutting down via the terminal (this actually makes the reboot happen instantly rather than waiting for the fans to stop)

-looking in the BIOS for any obvious settings which may be causing this

-performing a dpkg repair

-Allowing "Proposed" updates in the Updater

-installing (slightly) older Kernel (2.6.35-22 as opposed to 2.6.35-23)

-installing newer (2.6.36) kernel

I know others are having this issue, but other threads I've read seem to have fizzled out with no conclusion. Has anyone managed to find a way to make this work if they've had the bug?

Any advice at all? Is it worth trying an even older kernel? Or an even older version of Linux?

View 1 Replies View Related

Ubuntu :: Shutdown Command Like Shutdown Button?

Dec 10, 2010

looking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).

View 9 Replies View Related

Ubuntu Installation :: "Firefox" Stays In The Task Bar Despite Of Shutdown?

May 28, 2010

Browser FF within 10.04 suffers some kind of dilemma! Despite of giving it a shutdown(The X), it continues to stay in the Task bar with "Starting Firefox Web Browser". I cannot invoke it since it continues to remain stick with Task bar!

View 3 Replies View Related

Ubuntu :: Pause A Task Via Command Line?

Apr 4, 2010

I have a task that I need to let run while I'm away from the computer. It's very CPU intensive and I've even had to throttle down my processor to 3GHz to keep it from overheating. I'm using a combination of GNOME Sensors App and CPU Frequency Scaling Monitor to control the overheating problem. I have the sensors app set to alarm and "killall" at 61 Degrees Celsius. The sensors app has an option where you can enter a command that it will run for you. All I need is to know what command to run that can pause this task. So later I can resume it.

I know it can be done. System Monitor has an option to "stop" a task. It also has "continue". This is how I've been doing it while I'm at the computer. So if anyone knows what the commands are that System Monitor uses, that would be a huge help. By the way, I'm using Ubuntu 9.10 with all current updates.

NOTE: For anyone who is about to flame me for having a computer that overheats and wants to tell me that this is the problem I should be after. It only overheats during this process. Not for any games or compiling or rendering or encoding. Nothing else. I have even bought a new heatsink and fan. I have redone the thermal compound on the Processor. My processor usually runs at idle around 36-39 Celcius and under normal load around 47-53 Celsius.

View 3 Replies View Related

Ubuntu :: Equivalent Command That Will Perform The Same Task As ALT+F4 Keystroke?

Aug 2, 2010

Is there an equivalent command that will perform the same task as ALT+F4 keystroke? I want to create a simple script that lirc can use so I can set up a button on my remote to close program windows that pop up (like when plugging in usb thumb drives, inserting a dvd, and other windows), and avoid having to remote desktop or go into CLI to kill the window.

View 9 Replies View Related

OpenSUSE :: Tasks Overlap In Task Bar (system Tray / Task Manager)?

Jun 26, 2011

Anybody knows how to fix overlapping tasks in KDE system taskbar?Here System Monitor overlaps with digiKamWorkaround to rearrange icons - start any new task.Sorry for taking real photo of the screen. When I do PrintScreen KSnapShot task appears in the list and makes all task to rearrange. The resulting screenshot contains already fixed view.

View 5 Replies View Related

Ubuntu Installation :: Task Manager Or Task Bar, Keeps Changing Length?

May 29, 2011

After upgrading from 10.10 to 11.04 all of a sudden, the task manager or task bar, keeps changing length. The individual window "buttons" themselves keep changing size - flashing even, and the space between them also changes. It is driving me nuts! The little system tray(?) icons no longer appear in the system tray, but all stacked on top of each other in the top left corner.

View 1 Replies View Related

General :: Command Line - Automating A Task - Copy All Subdirectories And Files From One Directory To Another

Jun 10, 2010

I need to copy all subdirectories and files from one directory to another ever 5 minutes or so, with the old data automatically being overwritten with the new data. I'd also like this to run at startup. Is there any way this can be done? If so, what program would I need to schedule the automation and what is the command line I would need.

View 2 Replies View Related

General :: Launching A Task From Cli And Divorcing It From Terminal Task?

Feb 10, 2011

How do you launch a task from a terminal command line interface and it not be kill'ed if you close the terminal window. Like if I run jedit I type jedit & which launches jedit as a backgorund task. But, if I close terminal window, jedit dies to. How do I laucnch jedit and completely divorce it from the terminal task?

View 6 Replies View Related

Fedora :: Shutdown Policy Triggered By Vncserver - Computer Refuses To Shutdown Normally

Feb 5, 2011

Recently I installed vncserver (tigervnc) on my desktop. Ever since my computer refuses to shutdown normally. At shutdown the following message pops up: Quote: System policy prevents stopping the system when other users are logged in Then I have to enter the root password to shutdown. If I stop vncserver before, the computer shuts down normally.

[Code]....

View 2 Replies View Related

Ubuntu :: Karmic 9.1 Never Completes Boot?

Mar 16, 2010

System has been working fine until recently bootups started taking longer and longer. Finally the other day after waiting 15 minutes or so I gave up.

I was able to log in with the xfce option (small command line with no windowing support). From this I observed that I could run all my programs (but without windowing support) and that the system seemed generally healthy (as did the hard drive).

I found /etc/Xsession and ran

Code:
sudo ./Xsession

This successfully loaded X (is that it?) rather quickly, but everything was
running as root. That's what I'm in on now.

So it seems that there's some kind of problem with an init script failing to load X at some point. Or it could be more complex.

Specifically, the computer presented the login option for the gui and I logged in as my non-root user. Then I got the swirling lights with the bird in flight background (dark blue). It never progresses beyond this, and the hard drive is whirring consistently until I shut the computer off.

View 3 Replies View Related

Ubuntu :: Boot Never Completes (screen Goes Black)

Feb 7, 2010

I have had a really bad day (the first, after months of faultless operation)) with my Acer 5720Z laptop running Ubuntu 9.04 Jaunty. First thing was at the second startup today, nothing other than totally black or white screens showed during boot. However, the ubuntu jingle was heard after the normal time it takes to boot, so I was certain it was strictly some video problem.

Ok, so after having thought about this for a while and reading about similar issues here and there on the web I was struck by the fact that not even the Acer screen with bios info etc. showed normally just after power-up. By then I had dragged a second, stationary computer to the livingroom, so I thought I'd check if there'd be video output from the Acer's VGA port. There was, and the ubuntu desktop looking perfectly normal. Aha! - only the backlight working on the Acer's LCD screen, but no video? So I thought I'd check for loose connectors to the LCD or damaged wiring (installed replacement LCD myself some months ago with no problems). This is going to be easy, I thought (being more of a gearhead/hardware type of guy) Turned the Acer laptop off and unscrewed the screen frame stuff. Now I just start it and switch back to internal display... For some reason (too many unclean shutdown(s) during the early "blind" nervous phase of the problem, I suppose) the Acer now hangs with a black screen before boot is complete and I am unable to switch between external/internal monitors. Fortunately I can use the external monitor (video is stuck to the external VGA on startup), get to command prompt etc. so there should be hope. But I have no idea how to sort this out after many unsuccessful attempts. (Recovery mode, disk check etc.)

I can't find any sort of safe graphics mode option in the GRUB menu. Booting from the Ubuntu 9.04 ("live" option) also finally stalls with a black screen and nothing further happening, just like the install that's on the PC.

how Ubuntu 9.10 runs on a stationary HP Pavillion 1840 which I rescued from the trash just like the Acer laptop.

View 1 Replies View Related

General :: Evolution Task List Reminder (sync With Phone And Online Task List)

May 19, 2011

I have my task list in evolution (mainly so it can sync with my phone and online task list) but I always forget to look at the task list. Is there an application or plugin which periodically displays the contents of the tasklist or even better, it briefly displays the most urgent/important tasks when I login? Or anything else which automatically displays the most important tasks. Currently I have to open the task list and look at them (which I usually forget). I do not mean some kind of alarm when the task is due but more a daily reminder of what to do.

View 3 Replies View Related

General :: Configure The Way Bash Completes Directory Names?

Sep 7, 2011

I'd like to instruct bash to use a special method to perform completion on certain directory names. For example, bash would call a program of mine to perform completion if a path starts with "$$", and perform completion normally otherwise. Is this at all possible? How would you implement it? The goal is to allow autojump to complete paths for all commands when the user starts them with a certain prefix. So for example when copying a file from a far directory, you could type: cp $$patern + <Tab>

and autojump would complete cp /home/user/CompliCatedDireCTOry/long/path/bla/bla and you would just have to add where you want to put the file. Of course I can use ott's comment to add it to a few specific commands

View 3 Replies View Related

Ubuntu :: The Laptop Keeps Freezing After The Routine Disk Check Completes?

Jan 13, 2010

My laptop keeps freezing after the routine disk check completes, along with a screen of jiggly colours. I also booted into safe mode and ran the disk check from there with the same result.

View 7 Replies View Related

General :: Script.sh | Mail - Completes But Doesn't Include Output?

Mar 30, 2011

I have a script that uses cp to copy data from A to B. There are some troublesome files that are constantly in use and read "Permission denied" or "Text file busy" but I'm not worried about these. Therefore my copy process always contains output.The script runs through cron and the output (automatically) goes to /var/mail/user. I tried setting it up to send me an email and it comes through, but it's completely blank. The email in /var/mail/ contains the full output.

Here is my command:
0 18 * * * /home/backup.sh | mail -s "Backup completed" jsteel@...com
(The script simply contains many "cp -r /mnt/location/a /mnt/location/b")

[code]....

View 2 Replies View Related

General :: Message In Terminal After Redirecting Output And Build Completes?

Oct 9, 2010

I'm not sure about the following behavior so thought I would put it out to see if there is an error I need to resolve, or simply a process that I need explained.I'm also not sure if this is an Ubuntu issue, a Linux issue, or other... but here goes.I ran my "make build" in two different ways; one with just "make build" and one with "make build > output" (so I could review the full script).With just "make build" the process finished and returned to the command prompt.

With "make build > output", after the process had finished (script in output document identical to what was in the terminal with "make build") a new set of data was displayed in the terminal (see below).With the other examples of using "make build > output" the times it would parse something back to the terminal window was when there was an error. As I fixed the errors these breaks back to the terminal window would stop. So I'm wondering if this indicates a new error, but because the "make build" now completes successfully (at least it appears to), I'm wondering if this data in the terminal window is just a behavior related to redirecting the output script using the ">" process and something to do with returning to the terminal once a process completes

View 4 Replies View Related

Ubuntu :: Shutdown Command For GRUB?

Jun 4, 2010

At the GRUB menu, what is the command to shut down? Typing "halt" in the command line doesn't work and only hangs the computer on the command line screen. Heard that "init 0" works?

View 1 Replies View Related

Debian :: System Rebooting On Shutdown -h Now Command

Aug 17, 2011

I am running Debian Squeeze on an Intel DH55TC motherboard. When I issue a shutdown command
shutdown -h now

The system goes shutting down. Eveything looks fine, and the main console shows all process being stopped. In the end it says "System will now halt". Then a few seconds later, it restarts. It is unclear what is causing this, because nothing is written to the screen. It just goes blank and starts rebooting. Looking afterwards in syslog doesn't show anything also.

View 14 Replies View Related

Ubuntu :: Command To Get Gnome Shutdown Dialog?

Aug 12, 2010

Does anybody know of a command to get this Gnome shutdown dialog?

View 7 Replies View Related

Debian :: Reboot/shutdown Command Without Sudo?

Mar 11, 2011

I've added entries to my Openbox menu labeled Reboot and Shutdown. Problem is, reboot and shutdown h only work as root, and I never login as root. I've tried su-to-root -c reboot, but the menu entries remain unresponsive. I do not have sudo installed because I feel it is a security issue. However, I found that sudo reboot works with the menu entry, but only if my account is set to use sudo without a password in /etc/sudoers. I use tint2 as my panel, but have had no luck with finding a shutdown/reboot button.

View 4 Replies View Related

General :: Better To Use 'at' Command Instead Of Time Variable In Shutdown?

Apr 20, 2010

I was reading that if I want to do a one time scheduled command, I should use at, which I've never done, as opposed to cron, which i'm kinda familiar with. But what I want to do is reboot my server at 3am tomorrow and force it to check the file systems with a shutdown -rF. For this do I even need to use "at" or could I just say shutdown -rF 3:00.Will that also know that I mean 3am tomorrow and not say in 3 minutes from now or 3pm?

View 14 Replies View Related

General :: Custom Xen Shutdown Command Fails?

Dec 26, 2010

I have a custom command I've made to quickly shut down all of my xen instances.

Code:

[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'

As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!

Code:

[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown

And this is how I have the command entered into my .env file:

Code:

alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done

Why would this command work if you paste it onto the command line but not use the custom command virtdown?

View 1 Replies View Related

General :: 'last' Command Doesn't Show Last Shutdown?

Jul 6, 2010

I shutdown around 4 - 5 hours ago which would be around 14:00 to 15:00 time range. But as you can see there's no entry for it. Why? and how can i find when i last shutdown?

Code:
last
lyle pts/1 :0.0 Tue Jul 6 19:18 still logged in
lyle :0 Tue Jul 6 19:15 still logged in
lyle tty7 :0 Tue Jul 6 19:15 still logged in

[Code]....

View 1 Replies View Related

Security :: Way To Allow Users To Perform Everything Except Shutdown Command

Nov 5, 2010

I have set up the sodoers file to allow everyone in "group1" full sudo permissions without needing to enter their password.

Is there any way to allow users to perform everything except the shutdown command?

View 5 Replies View Related

CentOS 5 :: Shutdown/service - Command Not Found

Aug 13, 2009

With this issue:

$ sudo shutdown -r now

sudo: shutdown: command not found

View 2 Replies View Related

Debian :: Run Script / Command Before Shutdown / Reboot In Jessie

Feb 20, 2016

How to run a script/command before shutdown/reboot in Debian Jessie.

I created a script myshutdown.sh in /etc/init.d/ to shutdown rTorrent if the reboot or shutdown now -h command was executed.

#!/bin/bash
#rTorrent Shutdown Script
echo "Shutting down rTorrent!"
kill -2 `pidof rtorrent`

I set the file as executable.
sudo chmod +x /etc/init.d/myshutdown.sh

I inserted a symlink in the rc0.d directory with the process order K04.
sudo ln -s /etc/init.d/myshutdown.sh /etc/rc0.d/K04myshutdown.sh

I also inserted a symlink in the rc6.d directory with the process order K04.
sudo ln -s /etc/init.d/myshutdown.sh /etc/rc6.d/K04myshutdown.sh

Apparently rc0.d is for shutdown and rc6.d if for reboot

After reboot it appears that rtorrent does not run (I cannot connect to rtorrent via rutorrent) but really what is going on. I am trying to do this because rtorrent does a hash check on all files if it is not shutdown properly. I just want it to shutdown automatically and safely, before the system shuts down.

View 9 Replies View Related

Ubuntu :: System Restart After Total Shutdown Command?

May 18, 2010

am starting to get this figured out. finally got the wifi working on a HP touchsmart tx2 laptop and once i give ubuntu a total system shutdown command this system restarts, is this normal or do i need to fix something?

View 2 Replies View Related

Ubuntu :: Alarm Clock And Shutdown Signal Command?

Feb 2, 2011

I've installed Alarm Clock and was planning to use it to shut down my PC at a certain time every day. What command would I use to execute the shutdown, "sudo shutdown -P" ?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved