General :: Execute Script Before Shutting Down In Ubuntu?

Aug 10, 2010

When I shut down my computer I want to show some pending tasks that I have to do before leaving the office...

I did a local application to manage those tasks, so basically I just want to run a command, and shut down after I kill the app executed.

I have already tried with these options:

/etc/gdm/PostSession/Default --> this works only when I select LogOut option instead Shutdown. /etc/rc0.d/K01mycustomscript --> execute script after X is killed $HOME/.bash_logout --> This looks like does nothing. ./app-to-run && sudo shutdown -h now --> Don't like it for 2 reasons, prompts for sudo password, and can't use my laptop shutdown button.

I am using Ubuntu 10.04.

View 4 Replies


ADVERTISEMENT

Ubuntu :: Add A Custom Script To Execute When Logging And Shutting Down In Into A User Profile Like /home/test Or /root?

Oct 27, 2010

I am afraid to ask with so many things changing around in each new release.Where would one add a custom script to execute when logging and shutting down in into a user profile like /home/test or /root ?would this be rc.local?

View 2 Replies View Related

General :: Shutting Down X Server

Apr 10, 2011

ok well i installed Ubuntu 10.10 like 2 weeks ago on my computer and I have Spent like A week and a half trying to shut down the X Server. I am trying to install an nvidia driver to my computer... all of the option and ways to do it would be helpfull... any more information needed i will give to you (NVIDIA-Linux-x86-260.19.44.run)

View 3 Replies View Related

General :: Shutting Down PC Without Killing SSH Sessions?

Aug 10, 2010

I have some heavy, long processes running on remote Linux machines. I use my laptop to SSH to these machine and run the processes from my couch.

BUT, when I want to shutdown my laptop, I am in trouble since the remote processes are killed.

I did my research and found out that "screen" is a great solution for me, it is! (As long as I don't SHUTDOWN my laptop). Isn't there a way to "persist" the "screen" sessions so I can shut it down and then re-attach to a session?

View 7 Replies View Related

General :: Laptop Is Overheating And Shutting Down

Jun 11, 2011

I am on an Aspire 5315 and i have Backtrack 5,32bit,Gnome (ubuntu)installed with Vista as a dual boot on hdd.I am currently having problem with my laptop overheating and shutting down. In Vista the software Epower controls the fan but in linux I have to install acer_fancontrol and I have installed it as per instructions. It works fine till i reboot and then i get a frozen screen with the BT5 background and in terminal i get 1gear and goes on till 3rdgear without me being able to use BT5.

View 2 Replies View Related

General :: Gnome Not Shutting Down Properly ?

Aug 23, 2010

I'm using Gnome 2.30.2 with Ubuntu 10.4 would like to shut down X Windows properly. Using sudo init 3 from console 1 or a terminal on the Gnome desktop results nothing. There are a bunch of ways of doing accomplishing this that I've seen, but the most recommended methods each cause the same errors. The methods that I've used are sudo service gdm stop, sudo stop gdm && sudo pkill X, and sudo /etc/init.d/gdm stop. After these commands are run I receive the following message: gdm stop/waiting.

Then I switch to console 7 & notice that the screen is frozen & has the following information:

There is a blinking cursor below this message & the terminal does not respond to any command including Ctrl z.

These are the same messages that are normally quickly displayed when linux normally boots.

I disabled the battery power option in & removed other unnecessary startup processes from System, Preferences, Startup Applications. I've tried running the gdm stop commands from terminals 1 & 2 as well as consoles in X Windows & it produces the same results. For some reason though, the gdm commands do work when I used the restart option.

View 1 Replies View Related

General :: Windows - Hibernate: Restart Instead Of Shutting Down

Jul 24, 2011

I dual boot Ubuntu and Windows and sometimes I just want to switch between the partitions without loosing the state of the OS I was currently working with. Currently to do that I just hibernate that OS and, when the computer turns off, I restart it and select the correct partition.

I do not really want to have to press the on button again every time I want to switch between partitions. I figure that there must be a way to make the hibernate action restart instead of shutting down.

How do I make the hibernate action restart instead of shutting down on:

Windows, or Ubuntu

P.S. It is more important to me that I can do this in Ubuntu than Windows (because of the way I use the partitions) therefore if one answer says the Ubuntu way and the other says the Windows way then I will mark the Ubuntu one as the answer and give the Windows one an upvote and a big thankyou.

View 1 Replies View Related

General :: Log Out Of Command Line Without Shutting Down The Server

Feb 14, 2011

I am accessing a linux server remotely from my putty. I started the server and now I want to close the command line. when I do cntr+c or cntr+z it kills my server aswell. how will I close my terminal without closing my server? I tried cntr +d but it is not doing anything

View 2 Replies View Related

General :: Preferred Command For Shutting Down The System?

Nov 30, 2010

What is your preferred command for shutting down the system? Please explain your votes.

View 14 Replies View Related

General :: Shutting Down Of Dansguardian Disables Web Browsing?

Aug 11, 2010

Im running a Squid with transparent Dansguardian. It seems i cant shut down Dansguardian or else i will get an error message from firefox telling me it cant establish a connection with the proxy server.

View 4 Replies View Related

General :: Index An Ldap Database Without Shutting Down Or Stoping The Slapd?

Feb 26, 2010

I want to index my openLDAP database without shutting down or stopping by slapd. Is there a way to do that.

I also have master - slave architecture setuped for the replication.

View 4 Replies View Related

General :: Starting And Stopping Apache / No Listening To Sockets Available, Shutting Down?

Sep 16, 2010

I have just installed Ubuntu 10.04 and it works fine. Next, I attempted to install Apache 2.2.16 server on the machine. I was able to get Apache installed but I cant't get it to start. The command I used to get it to start is "apachectl -k start" and got the response "command not found". Then I used the absolute path which is "/home/Administrator/Downloads/apache/bin/apachectl -k start" and got the response"httpd: could not reliably determine ther server's fully qualified domain name, using 127.0.1.1 for ServerName(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80.no listening to sockets available, shutting down". Please advise me on what to do. My eyes hurt from looking at the screen for so long trying different options and reading almost all the apache install instructions that exists. Just ready to have it up and running.

View 7 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

General :: Can't Execute Binary On Ubuntu

Feb 11, 2010

Trying to setup a new Ubuntu machine and just downloaded 'p4' (Perforce command line client). It's a single file download - a statically-linked binary executable, so I just did:

wget [URL]

...right into /usr/bin. Simple enough. Except:
root@aj-ubuntu:/usr/bin# ll p4
-rwxr-xr-x 1 root root 748808 2010-02-11 16:54 p4
root@aj-ubuntu:/usr/bin# ./p4

[Code].....

View 6 Replies View Related

Ubuntu :: 11.04 Shutting Down By Itself?

May 18, 2011

I've installed Edubuntu 11.04 on an Intel Classmate PC but it is shutting down by itself for no apparent reason. Can I find a log file anywhere that might give me a clue what is causing it?

View 1 Replies View Related

General :: How To Execute Csh In Sh

Aug 23, 2010

how to execute csh in sh ie, if I have a script in csh syntax as , ( my.csh )

##################
set x = y
setenv xx YY
##################

And I have a sh script ( my.sh )

#####################
#!/bin/sh

I want to call here the my.csh in such a way that I have access to variables set by the

csh script
ie. echo $x $xx shoud work from sh ( main script )
######################

View 13 Replies View Related

General :: Execute .jar Files In Ubuntu Server?

May 19, 2011

I have a .jar file named "server.jar". In windows it executes on simply double click on it but I want to execute it on the server and I don't know how to do it??? I have Filezilla to upload any file on server and putty for cmd prompt. where i have to upload my file on server and hoto execute it.

View 3 Replies View Related

General :: Execute File In Different Process On Ubuntu?

Oct 28, 2010

Means I want to execute two executables one by one at the same time as shown below:execute1
execute2these are two executables. but the second one is executed after 1st one is closed is there any way two execute both.One way isgnome-terminal -e execute1execute2but here i want to hide the terminal window..........

View 3 Replies View Related

Ubuntu :: Shutting Off Pc With Cron?

Jan 25, 2010

I'm trying to set up my pc to power off at 00:30 everynight. I'm using webmin's Scheduled Cron Jobs tool. I've tried (running as root):

halt
shutdown -h now

and neither have powered off the pc using webmin. Am I missing something?

View 8 Replies View Related

Ubuntu :: 10.4 Freezes When Shutting Off?

May 5, 2010

I have a laptop here with win 7 and decided to dual boot with ubuntu just for fun. Win 7 starts up, works, and shutdown/restarts fine. Ubuntu starts up, works great, but freezes at the splash screen showing "Ubuntu" with the bar scrolling when logging off to restart. Please help. I dont think holding down the power button to turn it off is too good. i searched google but found nothing =/

Edit: Shutting off works fine now... its just the restarting problem

View 9 Replies View Related

Ubuntu :: Automatically Shutting Down ?

Oct 18, 2010

I am using Ubuntu 10.04. It is installed in windows xp. Recently I am facing a problem. After starting the computer and boot into Ubuntu, it works fine but after sometime, at about after an hour it just automatically shut down. I don't know why. My xp is doing fine but the problem in only Ubuntu.

View 9 Replies View Related

Ubuntu :: Program Not Shutting Down?

May 11, 2011

have ubunto 11.04 and when i shut down some programs thy look like thy have ,but if i have not rebooted computer when i want to open them again it says error still running and i can do nothing until i reboot ,is there any way to shut then down with out rebooting ,only started with this ver of ubuntu

View 2 Replies View Related

Ubuntu :: Kubuntu Not Shutting Down

Nov 27, 2010

I installed Kubuntu 10.4 (which runs great) a couple days ago but when I shut down it goes to the Kubutu shutdown screen and freezes. I still need to run updates which may fix the issue if not any suggestions.

View 3 Replies View Related

General :: Execute Different Commands With Same Name?

May 14, 2010

I have a two seperate files on my computer,

which execfile
/usr/local/bin/
/usr/bin/

so, i have two files with the same name in two different directories. How can I specify exactly which command to run?

View 6 Replies View Related

General :: Best Way To Execute A Script?

Jun 23, 2010

There are many ways to execute a script (*.sh). But what is the best way to execute a script also what should be its location. So that it can be executed from anywhere in the shell. I don't want to execute them with ./*.sh.

View 8 Replies View Related

General :: Cannot Execute A File?

Mar 8, 2010

Trying to run an executable, but it's not working for some reason:

Code:

View 14 Replies View Related

General :: Execute The File Within Vi ?

Oct 26, 2009

I m trying to execute my file from with in vi. i m using following syntax esc :!<program-name> m i making any mistake as it is giving me an error.

My program is this:

#This program takes 3 Parameters from user namely name,address,phonenumber and store those details in detail.out file .

#To store output in only milind directory by doing this if we run this file within any directory the file get stored in milind directory only.

View 14 Replies View Related

General :: How To Execute A .run File

Sep 21, 2010

Downloading Virtual box, I saw a link with title All distributions on its home page:

VirtualBox-3.2.8-64453-Linux_x86.run

I have not downloaded it yet, I wanted to know how to execute it ? I've never seen a .run file before ! Does this mean this file is supposed to run on all distributions ?

View 13 Replies View Related

General :: Execute This On The Shell?

Mar 12, 2011

ill have this question on the test maybe : In dir00 directory create files year01.txt, year02, ...year05.txt with January calendar for 2001-2005 years in it.-i'm lost. i execute this : cat | cal 01 2001 > year01.txt

View 12 Replies View Related

Ubuntu :: Computer Saves Itself Before Shutting Down?

Feb 9, 2010

My computer saves it's state when shutting down. So when I boot back up, all the applications I had running boot again. I HATE THAT. When I shut it down, I want everything GONE on next boot up. How do I fix this?

View 2 Replies View Related







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