Ubuntu :: Running Script On Program Close
Mar 8, 2010I'm trying to make a script that will copy over the settings file for firefox everytime firefox is closed. What would be the best way to go about doing this.
View 3 RepliesI'm trying to make a script that will copy over the settings file for firefox everytime firefox is closed. What would be the best way to go about doing this.
View 3 RepliesI can click to close a program to close it and it will lock. No matter what I do; (click on EDIT OR FILE, etc, the system will lock. This happens several times each day. I shut down using ALT + SYSRQ + R, S, E, I, U, then B for a soft shutdown. I have used Ubuntu before, but this is a fresh install after having problems with the computer. Computer is a Dell 2400.
View 2 Replies View RelatedI'm trying to get a program to automatically reload if I accidentally close it. This is a remote access program, so it has to be relaunched without me doing anything to help it along if it crashes or I accidentally close it. I noticed that someone came up with a way to solve this back in 2007 [URL].. but the files don't appear to exist any more for it to work. how I might get a program to automatically reload on exit?
View 6 Replies View Relatedi installed yumex:yum -y install yumex, when i start yumex it came with this error:fatal error:backend-not-running backend not running as expected (yumex will close) how can i solve it?
View 10 Replies View RelatedI'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.
View 4 Replies View Relatedplay on linux is the only program sorry what it is doing is when i go to install a game and click apply it just stops then when i go to close the program down it says its not responding and wants me to either wait or force quit?
View 2 Replies View RelatedSo, this may have something to do specifically with conky, but I don't understand how sometimes when I run 'conky' from the terminal and then once it loads I close the terminal, it kills conky. But other times, I do the same thing, wait for it to load, and it just keeps running! In both cases, I don't get a "user@computer~:$" prompt back after running 'conky' either. That happens sometimes with other things like gedit too..
View 3 Replies View Relatedfriend uses skype and his roommate keeps logging him off we need a way to make it harder for him to do this
View 4 Replies View RelatedI have two queries,when am using skype e.g and I close it,it remains running in the background however I cant maximise it again.(have to kill it and then start it again).ALT+ TAB brings the other processes but not skype.It's still running and I can see notifications.2.In firefox,when am scrolling down a page,the text gets mingled into each other,i have tried to edit options in firefox (autoscrolling and smooth scrolling) but no positive change.
View 4 Replies View RelatedI presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....
I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).
i have a seemingly simple desire but i cant get it right. my .xinitrc is as follows
openbox
sleep 5
xfce4-panel
since that only starts openbox
i would like to know how to get it to also start the xfce panel
also how can i run say firefox from a term and be able to close that term window without killig FF?
If i login to my home server with ssh -X, and open close gui program. I cannot exit the shell normaly with ctrl+d.
I think now there to many connection not closed correctly. So now i get the message:
ssh_exchange_identification: Connection closed by remote host
Is there a prober way to close the connection, after using a gui program?
I installed an RPG platform (Fantasy Grounds) on my system via Win7. Once installed, and known to be working, I logged off Win and back to Ubuntu and ran the program via Wine. Once it starts, I hear my PC rev up, see the system monitor crank up the CPU and see that "Fantasy Grounds" is running and using about 40% of my CPU usage... but I don't see it. There is no GUI, no nothing. I can end process and the CPU drops down to normal. Anyone have any idea as to why a program would be running, but I have no visible evidence that it is?
View 2 Replies View RelatedHere's the error message I get when trying to run Thunderbird 3.Thunderbird is already running, but is not responding. To open a new window, you must first close the existing Thunderbird process, or restart your system.I can't find it running anywhere.
View 9 Replies View RelatedI seem to be having a problem with cron. I have a python program that checks a specific directory for pending email scripts written in python.
Code:
#!/usr/bin/python
import os
emaildir = os.environ['HOME']+"/email/"
filelist = os.listdir(emaildir)
for pyfile in filelist:
if pyfile.find(".py") > -1:
execfile(emaildir+pyfile)
This code has been tested and works fine. The problem is that I need cron to run this code every 5 minutes but i can't tell if it is running: Here is my cron code:
5 * * * * /home/username/custom/CheckEmail.py >>/home/username/custom/email.log 2>&1
I activated the log (I think) but all i get is /var/log/cron.log and that only logs when I activate/deactivate or edit the cron file. is there anything else i need to set for this to work? I am running Ubuntu 9.10.
I downloaded The Witcher for windows from Wine and I'm trying to run it but it says I have to run it as the admin the first time the game is ran. I don't know how to run it as admin lol. I've only been using ubuntu for about a week now. If you can let me know how to do it from the terminal AND from shortcuts, that would be great because I'm trying to know what all I can do with ubuntu.
View 6 Replies View RelatedIs there a file that can be opened and a program name searched for? If it is there, the program is running, else it is not.
Something like that?
I have a program that stops periodically. If I could run a script every 30 minutes or so to check the hypothetical file, it could re-start the program if the program had stopped running.
I want to use a program, that runs windows and "linux with mono". I run Kubuntu 10.10.
Quote:
koen@Koen-Kubuntu:~/Documents/Software/SuperOneClick_1_6_5$ mono SuperOneClick.exe
** (SuperOneClick.exe:4191): WARNING **: The following assembly referenced from /home/koen/Documents/Software/SuperOneClick_1_6_5/SuperOneClick.exe could not be loaded:
[Code]....
i am trying to daemonize my (java) program on ubuntu. For that end i created a script based on /etc/init.d/skeleton script which obviously uses start-stop-daemon.
But I cannot make the process (java program) run on the background. it keeps running in the same terminal i start my daemon script. Trying --background option for start-stop-daemon does not help.
I am using a small ubuntu command-line only distro (Ubuntu Mini Remix) to run off of a LiveCD or USB stick. I need it to run a program as root as soon as it is finished booting, automatically. I cannot for the life of me figure out how to make it run my program. I have tried putting a script into rc2.d (when I type runlevel at the command line, it tells me it is level 2) that simply contained:
Code:
#!/bin/bash
qct
(qct is the name of my program)
I did the chmod u+x on the script. It does not run my program, though. I have no idea if it was a naming issue or not. I do not understand the naming scheme.When it boots, and doesn't run my program, I can type sudo qct at the command prompt and it runs fine.
I've downloaded and installed WINE, works well with most windows programs I run. I recently downloaded a program called METT (micro expression training tool), and apparently it needs a disc to be ran. Well, I installed KISO and mounted the image there, but I still can't get it to run.
View 6 Replies View RelatedI'm looking for a way to time how long a program runs in the terminal. I didn't have any luck searching around but I'm sure it's possible. Does anyone know of the easiest way to do this?
View 2 Replies View RelatedI am a new ubuntu user but I used linux mint before ubuntu and I had the same problem there. My microphone only works when 1 program is running, but if I load a game or something my microphone stops working.
View 5 Replies View RelatedI amtrying to install a program and at the point when I am required to execute the command "make clean" and then after "make all" , I obtain the following eror message:
ndoheric@nen-laptop:/opt/WAVEFORPGM/distribute$ make clean
cd ./MyTime; make clean
make[1]: Entering directory `/opt/WAVEFORPGM/distribute/MyTime'
[code]...
I'm using the FortiClient SSL VPN free version provided by my University. I can't get tech support from the university OR Fortigate. I have it running on one system, but I have no idea what the sequence of libraries I installed was. I need it to run on a second machine. pstree is only telling me that the FortiClient ssl daemon depends on pppd. I need to know how to find out what else it's using: LibPKCS and the like.
View 1 Replies View Relatedhow to run multiple instances of a command line app from the terminal?
View 2 Replies View RelatedLooking for my process monitor you see that I didn't run any program but my CPU01 100% overload and fax worked a lot,CPU02 just a bit.Ram's just 12%. So what I when wrong? I install Ubuntu 10.04 x64 - ram 4Gb - Nvidia quadro 140M.
Firefox6.6
It really bothers me that when I start a program through the terminal it takes up space with the terminal that's tied up with the program, and the program itself. I know how to keep it from tying up the terminal, but when it devotes the terminal, I like that it gives output if the program crashes. Is there a way I can set a terminal to completely hide itself (off the desktop and the taskbar) while it's running a program, then reappear once the program is closed?
View 4 Replies View RelatedI am running ubuntu-9 on i686 and cross compiled simple hello.c program with arm-linux-gcc (handheld/arm-linux-gcc-3.3.2.tar.bz2]) for arm , but unable to run it on openmoko neo free runner phone.
View 1 Replies View RelatedI am trying to run open a GUI program on a remote Ubuntu machine using ssh.
I want to open, lets say firefox or skype, on a machine I have connected to via ssh.
But when writing logging in with user2 and writing sudo -u user1 firefox I get an error message saying no display specified.
The machine is turned on and logged in with user1, it just appears that i cant get ubuntu to recognize that there is a GUI available.