General :: Restart Program When Crashed ?
Feb 5, 2010
I have a program called HelloWorld, but it crashes a lot,
is there anyway to tell Linux to automatically check if Hello World crashed, and if it is crashed, restart HelloWorld? Running Ubuntu.
View 1 Replies
ADVERTISEMENT
Nov 22, 2010
I thought I would play around with php for a while and so set forth to configure apache. Whilst I was reading a website for installing LAMP stuff on ubuntu I thought I would give it a go. I installed a LAMP server with:
sudo tasksel install lamp-server
and lo and behold it crashed my operating system upon restart. So both my laptop and desktop were toast.
Everything is reinstalled now so is fine and I have installed apache2 and php5 from separate packages. The one thing that's troubling me is why it crashed. It seemed to uninstall vlc media player, m-player and gnome-player as well as removing the "switch accounts" button on the lock screen. Does anyone know 1) why it died and/or 2) why it chose to eliminate those programs specifically.
View 1 Replies
View Related
Jul 7, 2010
I am facing problems to restart PADS(Passive asset detection system) from java program.I used the root as a user. So from the command prompt I can start PADS with out sudo ,but when I try to start PADS from the my java program i.e.
Process proc=Runtime.getRuntime().exec("pads restart");
It throws the error in log that FATAL error ! you not root and permission denied.
Then I tried the same with sudo
Process proc=Runtime.getRuntime().exec("sudo pads restart";
Here it create another two process extra
1 for stop the pads
2) for start the pads
It does not kill the previous process of PADS .and both the process get hung.
View 1 Replies
View Related
Jun 7, 2011
I m using ubuntu 10.04. I have install flightgear Scenery designer(fgsd) and it executed successfully, but during working on it I selected any option of it and fgsd crashed. After that it is not getting execute. Throwing following error on console. buffer overflow detected ***: fgsd terminated
View 1 Replies
View Related
Feb 28, 2010
I actually used dd
Code:
dd if=myimageof16mboffat16.img of=/dev/sda_my2gbext3
Yeah, I killed my disk, I was tired, or I dont know the crap what I did that day.
After several times using Photorec, it is basic program that has no other better alternative. It can try to recover files. But one is limited by: - one cannot select a new type of files, example avi extensino isnt in there even and one has a limited possibilities of files - it is not recovering folders, because it doesnt care. it cannot create a new *.img (raw or gz) file of a crashed harddisk, *.img that is readable my mounting + loop one have to have a larger size harddisk to recover your data one has to seek the whole harddisk, and the user cannot have a list of files, and then give the possibility to recover (copy) only the one wanted to be recovered photorec does not recover the filenames even, Or is there better program / code from Freebsd or MacOsX or windows (all platform) that we could compile? I mean that cannot be. In Windows there is so many apps and disk utilities. something exactly like this for ext3:[URL]..
View 8 Replies
View Related
Jul 2, 2010
I removed gxine and got this message.
Code:
Continue? [y/n/?] (y): y
Removing gxine-0.5.905-0.pm.2.9 [done]
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
View 2 Replies
View Related
Sep 1, 2011
Any way using terminal or another method to restart a frozen or crashed program in Ubuntu?
View 4 Replies
View Related
May 18, 2010
I'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 Related
Aug 20, 2010
What I would like to do is if the app crashes which kills xinit for the system to either kill login (which will auto login and restart the app) or just to execute the startx command (which auto launches the app) as if typed in from the keyboard. I am trying to find a way that will use the least amount of system resources, rather than a loop.
View 1 Replies
View Related
May 11, 2011
I have installed Blender from Blender.org. I have installed it my home directory. After launching Blender the icon appears in the unity launcher. Then I fixed the icon in the launcher via the context menu. After restart the Blender icon does not reappear? How can I realize that the Blender icon shows up very time after starting Ubuntu?
View 9 Replies
View Related
May 20, 2010
I tried to set up an automatic program restart on Debian Lenny for fail2ban and asterisk. Google helped me to find some HowTos. However, all what I tried so far doesn't work. The latest version: According some instructions the following commands have been written in a file called auto_start_stop:
Code: #! /bin/sh
-> saved in the folder /etc/init.d and
-> its properties changed with a right-click to 075.
-> The links have been created with update-rc.d auto_start_stop defaults
Why this doesn't work and how I could correct it?
View 5 Replies
View Related
May 3, 2011
In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).
How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.
View 1 Replies
View Related
Jul 12, 2011
Now Debian6 suspend and rstart is all ok!
Auto start a program with login is ok.
How to auto start a program with debian suspended and restart ?
Maybe with gdm3 or NIC....?
How can I catch a event to auto start my program?
View 1 Replies
View Related
Nov 17, 2010
I'm running Debian Squeeze x64 and have an odd problem with both Empathy and Pidgin. After I launch the program and add my accounts everything works fine. When I shut down either program and restart the accounts will not connect. I have to delete the accounts and re-add them and all is good until the next time. It's not a firewall issue as I've tried it with the firewall turned off.
View 1 Replies
View Related
Feb 27, 2010
i have installed dhcp,there i declared the subnet and network,i used command include "/etc/dhcpd.conf.jutu1"; to start and other files, but it show me this error when i want to restart the DHCP, if you need more information contact me, i have configured this file too jutu1, but it don't let me to restart dhcp from /etc/init.d/dhcpd restart, this show me this message
[Code]..
View 3 Replies
View Related
Jun 8, 2011
I run Ubuntu 10.10, recently I got this problem. if I open more than one program, and click on icon of them on task bar to switch between them, KDE crash and restart with log in screen. now since 2-3 days this restart also happening when I ALT+TAB to switch between running programs .
View 4 Replies
View Related
Oct 11, 2010
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies
View Related
Jul 9, 2010
I was concerned about a number of duplicates reported by yum and was cleaning with package-cleanup (logged in remotely with ssh and vnc) when suddenly all the fonts turned to music and the system froze.
I had run F13 preupgrade as a test to see how it would go...(in case this is important) but had not rebooted yet...
Now when I boot I get the splash and the fedora droplet fills with white, though it gets progressively slower as it approaches the top. Eventually the infinite f appears but that's where it stays.
I have been able to boot to a live-usb stick w/F13. And after some shear panic, I discovered that the root partition is buried in lvm, in a 935 GB physical partition.
I have mounted the logical volume and dd if=/mnt/oldroot | gz > /ExternalBackupDrive/oldroot.gz
so that if I break things further there is a chance that I can get back to a working system.
Is it just that my bootloader doesn't know how to mount the lvm?
Where do I look for clues?
Is there a boot option that will let me follow the progress?
View 2 Replies
View Related
Apr 29, 2011
I have a centos 5.2 machine that seems to have a problem with xwin. upon a reboot it complains that gnome has crashed. my desktop bckground is 'there' my desktop resolution seems to have changed( maybe it was 1024 x 768 -- now 800x600??? )the toolbars that were across the bottom of the screen that held shortcuts to programs and things is now blank -- empty.what might i be able to do? also when i tried to update i get complaints about missing dependencies.
View 3 Replies
View Related
Sep 29, 2010
This is my first tryst with linux, so this might seem to be a very trivial problem: While installing updates for ubuntu 9.04, there was an unexpected crash saying that 'E:dpkg was interrupted, you must manually run sudo dpkg--configure-a' to correct the problem. When I tried to follow the instruction, it said that sudo could not be found. Is this a directory problem? If yes, how do I rectify it?
View 1 Replies
View Related
Aug 29, 2011
I have remote location Linux running (CentOS 6.0). It has dynamic ip address so i installed noip2 service and copied the file cp redhat.noip2.sh /etc/profile.d/noip.sh. After that when the system restarted once, it never have the correct shell. As a result remotely when i try to ssh the server i cant login and i cant do anything.When i debug the ssh i see that debug1: Authentication succeeded (password). and command is also sent but nothing just happen.
View 2 Replies
View Related
Jun 7, 2010
I wanted to know the solution that if my linux crashes then can I recover my windows in adual boot env.
View 6 Replies
View Related
May 23, 2011
My windows xp partition crashed for an unknown reason the other day and i was wondering if i could fix it from my mint debian partition. my windows partition starts to boot but then just hits a black screen and freezes and when i go to run it in any safe mode it just lists a bunch of drivers and then stops there.
View 7 Replies
View Related
May 7, 2010
I am new to linux and am trying out script writing. I am using shell. How can I make a script to open a program then operate within that program?
View 5 Replies
View Related
Apr 30, 2011
I have just finished the upgrade of the latest version and I'm at the point of my system restating.
My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.
I now have on my screen (still in the terminal view before the grub menu)
"name@name-desktop:...$ "
I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.
View 6 Replies
View Related
Oct 10, 2010
I am facing problem(system gets crash) while I try to send IPv6 packet by using my kernel module. I have given the code and makefile for my module. I will appreciate if any one shares any tester module for sending IPv6 packets.The kernel version that I am using is 2.6.9 and it supports for IPv6.
file name: rtp_pkt_tx.c
#include "linux/kernel.h"
#include "linux/module.h"
#include "linux/skbuff.h"
#include "linux/init.h"
[Code]...
View 1 Replies
View Related
Jan 6, 2010
Trying to help brother whose computer quit working after he downloaded updates. Don't know Linux lingo but it looks to me like he has multiple flavors of Linux running: Gnome, ubuntu, xbuntu, kbuntu - probably more I've forgotten.
He knew nothing about computers at all and inherited a build-it-yourself computer kit that someone was throwing away. It came with a CD of Linux software. By trial and error he made it run and has managed to do some amazing things with photos and graphic design. But he downloads and launches EVERYTHING that suggests itself to him. Sometimes a thousand files at a time.
Now his machine boots but won't run any apps. It keeps giving him a message that he needs to "manually run" some "dpkg-something" but he doesn't know how to get to any sort of root or command prompt where he can enter a manual command. All he knows how to do is click icons. He's clicked them all. Now his computer is continually running screen after screen of programming language.
Is there any hope? Can we reinstall an OS without losing all of his files of graphics work? Which OS should he use on a fairly old and slow machine if his main (only?) use is graphic design?
View 14 Replies
View Related
Jul 3, 2011
for instance, it said that "docky needs proper composition to work properly" when it was working properly before. after having too many flash applications open, after clicking on a link to a videos video, everything crashed, and it said that *for the 20th time now in a week* that kwin has crashed. then i tried to log out and log back in since that normally fixed everything, but i couldn't log out, instead i had to killall xorg but all that showed next was a black screen instead of what it should have shown, the login screen. i had reboot from the terminal and the login screen was normal, but when i booted in to kde, everything that needed opengl and composition crashed. docky doesn't have a black box around it, but it won't intellihide like it should *and i tried to set it back to that setting but it didn't give me the option to*
View 2 Replies
View Related
Dec 18, 2010
i can only boot to MSDOs with floppy msdos bootup on A:. I want to install ubuntu 10.10 and completely erase HDD but the ubuntu disc won't bootup even when bios is set for cd only. This is older HP pavillion that I have retired but HDD scans out good so I thought i would run Ubuntu only and maybe put MS out of business but not having any luck with install. When booting from HDD error is system 32hal dll is missing or corrupt but HDD C: is 0 anyway. I just want to install so I can play with Ubuntu.
View 14 Replies
View Related
Mar 13, 2010
I have a suspend problem in my laptop. Sometimes, when resuming from suspend, the network adapter is down (that is, the network does not work and the light of the network adapter is off). Restarting the network service doesn't work, because I think that the system forgot about the hardware, and probably the driver should be reloaded.Does anyone knows how to do that?(ps. /etc/init.d/networking restart does not work, because the hardware driver is not being recognized anymore).
View 5 Replies
View Related