Ubuntu :: Shell Command To Close A Program With Dump?
Feb 3, 2011I'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.
View 4 RepliesI'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.
View 4 RepliesI want to generate core dump files from my program when it crashes. Its a pretty big process and has about 10-11 threads in it.I have followed the documentation to enable core dump by setting ulimit to unlimited etc. I quickly tried "A demo program creating a core dump" from the following webpage, which succeeds in Segfault and dumping a core file in the directory that I configured.However, I tried running my original program and caused it to crash. I did this by making calls to kill(), raise() or the same null pointer access as shown in the webpage above. In each case, my program crashed but did not generate a core dump file. Am I missing something?My program is in C++ and my environment is Redhat 9.0 (kernel 2.4.20)
Going through the "Why do I NOT get a core dump?" section on the same webpage as above, I can see two potential problems. One - there are issues with the suid/sgid (bullet # 6). I am not able to change any settings with suid because my system does not contain either /proc/sys/fs/suid_dumpable or /proc/sys/kernel/suid_dumpableTwo, my program has threads in it and the bullet # 8 is the problem.
I have used Dump Command to dump the application files. For Full backup the level 0 is working fine. For incremental backup I used the level 1 or 2 it is getting the error as
DUMP: Only level 0 dumps are allowed on a subdirectory
DUMP: The ENTIRE dump is aborted.
The code I used
===============================
#!/bin/bash
#Full Day Backup Script
#application folders backup
#test is the username
now=$(date +"%d-%m-%Y")
[Code]...
To analyse a coredump, I need to specify program name/path in GDB/KDevelop. Since the program name along with arguments is also within a core dump, I wonder if it doesn't keep the proper path of program that crashed and so asks for it?
View 3 Replies View RelatedI am currently working to develop a perl script for irssi that will capture data from irc channel hold it in memory as variable and send it to a shell. Does anyone know a good irssi irc scripting guide? something that will include $botname, $msg, $nick, $channel etc scripting explanation. Is it possible to send a run program command to shell thats located in my /home/user/myapp using ./myapp from irssi? i am using bash. I've only just started, so i dont have any code written yet,
View 2 Replies View RelatedI am still new in linux (Redhat) i used dump command to backup the root of the linux server: #dump -0u -f /dev/st0 / the command is achieved. how to restore this dump.
View 2 Replies View RelatedDoes the dump command back up entire file-systems or is it capable of backing up subsets of a file-system? And is tar capable of taking device names (for file systems) as input to be archived?
View 1 Replies View RelatedI 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 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 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 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 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 Relatedhow to close thunderbird fromterminal? I don't mean to kill the process,I just would like a "clean" exit.I'm asking this because my setup is so that the thrash should be cleared at exit so and the deleted email are deleted from the server. I then set a cron task so that thunderbird is killed but apparently doing so the emails are not deleted from the thrash (whereas they are if I close the application), and I'd like to change the task to close thunderbird rather then kill the process.
View 6 Replies View Relatedi know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.
View 5 Replies View RelatedI am using Ubuntu 10.04 and installed Wally 2.4.
I have few questions:
1) Currently I run wally with command line by running
Code:
It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?
2) why is that option disabled?
I would like to Close/Open port 21 using command line. I have an FTP server and I don't want to have the port open all the time. I need only two hours by week to be open port 21 from outside to inside.So I need to know the command line for opening and closing the port 21 then I will implement this in a script into cron.hourly.
View 2 Replies View RelatedI'm trying to close the CD tray with the command eject -T on a laptop. It works only to open it, but not to close it, i have to do it with my hands
View 2 Replies View RelatedHow can I force all currently open sockets in linux to close from the command line?
View 2 Replies View RelatedI am using gtk to program GUI. How can I show the output of shell command into a textbox, ex ps -efc command ?
View 3 Replies View RelatedI would like to know which command should I enter in the execute dialog (opened with Alt+F2) so the dialog to close session and change the user opens.
View 5 Replies View Relatedi am working on a project that uses message queues. i am able to successfully create them and they are working fine. now the problem is to close/remove message queues without software or mq_close / mq_unlink command. earlier when i worked on rh9, there is ipcs utility. we use ipcs to see all the existing message queues and ipcrm to remove them. however ipcs is not working for message queues in RHEL 5.3. Neither ipcs shows the exisiting message queues and neither we are able to use ipcrm. Plz guide to close/remove the queues with ipcs or any other command/utility from shell itself.
View 1 Replies View Relatedi 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 have a program I want to run as it's own user. But I don't want anyone to be able to login as that user, so I created a user like: -
useradd -s /sbin/nologin someuser
How do I run a specific program owned by this user as this user? I can't su to this user as it doesn't have a shell.
So I open firefox from my bash shell with:
Code:
firefox google.ca
it opens firefox, I can browse, etc.
Now if I alt-tab back into my shell, i can't enter any commands in the shell.
I know that i can do this if I close firefox, but I want to keep working in my shell with firefox still open.
Is this possible?
In below program I want to add (as part of the valid_cmds string) the pwd (print working directory), lo (logout), and cd (change directory) commands. However when I add those into original program ;
char *valid_cmds = " ls ps df pwd lo cd";
they are not working I have the cout message huh?
Original source code is below code...
1. I didn't like the icon theme and changed it to Ubuntu Mono Light. But is there a way to get the Min/Max/Close buttons to how they are in Radiance when maximized, or is that dependant on something else?
2. Is there a way to disable the Unity dock, but not the Unity feature where the Min/Max/Close go into the command bar?
Running a program with arguments using a shell script
View 1 Replies View RelatedPalimpsest Disk Utility shows that /dev/sda3 partition has too many Bad Sectors: 1732.
I know, that my HDD is dying. But if I'm not mistaken I can close this sectors from system, because when Linux tries to read file with bad sectors - it just stops.
Can I ask you to give me terminal command to do so? I've searched on Wiki and in Man, but.. i'm bad searcher
I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.
View 10 Replies View Related