Ubuntu :: Shell Command To Close A Program With Dump?

Feb 3, 2011

I'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.

View 4 Replies


ADVERTISEMENT

Programming :: Core Dump Issues. Program Crashes But Does Not Generate Core Dump File?

Oct 7, 2009

I 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.

View 1 Replies View Related

Programming :: Incremental Backup Using DUMP Command - Error "DUMP: Only Level 0 Dumps Are Allowed On A Subdirectory"

Sep 6, 2010

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]...

View 2 Replies View Related

Programming :: Core Dump Analysis Require A Program Name / Why Is So?

Jul 21, 2010

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 Related

Programming :: Send A Run Program Command To Shell Thats Located In /home/user/myapp Using ./myapp From Irssi?

Mar 26, 2010

I 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 Related

Server :: How To Restore Dump Command

Sep 7, 2010

I 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 Related

General :: Dump Command Backup Entire File System?

May 22, 2010

Does 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 Related

Ubuntu :: 9-10 Locks Up After Close A Program

Feb 2, 2011

I 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 Related

Ubuntu :: Running Script On Program Close

Mar 8, 2010

I'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 Related

Ubuntu :: Automatically Restart A Program On Close?

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

General :: When Go To Close Program Down It Says Its Not Responding

Oct 27, 2010

play 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 Related

Software :: Make Ubuntu Request For A Password To Close A Program?

Jul 8, 2010

friend 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 Related

Ubuntu :: Close Thunderbird From Command Line?

Jan 19, 2011

how 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 Related

General :: Command To Close X?

Jun 14, 2011

i 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 Related

Ubuntu :: Wally 2.4 - Command Line - As Soon As Close My Terminal - Terminates

Sep 24, 2010

I 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?

View 4 Replies View Related

Ubuntu Networking :: Close/Open Port 21 Using Command Line?

Mar 12, 2011

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 Related

Hardware :: CD Tray Doesn't Close With Command?

Aug 11, 2010

I'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 Related

General :: Force All Sockets To Close From The Command Line?

Sep 14, 2010

How can I force all currently open sockets in linux to close from the command line?

View 2 Replies View Related

Programming :: Show The Output Of Shell Command Into A Textbox, Ex Ps -efc Command?

Oct 20, 2010

I 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 Related

OpenSUSE Install :: Alt+F2 Command To Open 'close Session+change User' Dialogue?

Nov 12, 2010

I 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 Related

General :: Close/remove Message Queues Without Software Or Mq_close / Mq_unlink Command?

Jan 17, 2011

i 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 Related

Ubuntu :: Run Program From Terminal And Then Close The Terminal?

Mar 30, 2010

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?

View 2 Replies View Related

Fedora :: Way To Close Ssh -X "nice" After Using A Gui Program

Dec 12, 2009

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?

View 3 Replies View Related

General :: How To Run Program As User With No Shell

May 27, 2010

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.

View 15 Replies View Related

General :: Use Bash Shell When I Run A Program From It?

May 11, 2011

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?

View 6 Replies View Related

Programming :: Add Commands To A Limited Shell Program?

Apr 3, 2011

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...

View 3 Replies View Related

Ubuntu :: Appearance - Disable The Unity Dock But Not Unity Feature Where Min / Max / Close Go Into The Command Bar?

Jul 17, 2011

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?

View 3 Replies View Related

Programming :: Running A Program With Arguments Using A Shell Script

Jul 14, 2011

Running a program with arguments using a shell script

View 1 Replies View Related

Hardware :: Command To Close "bad Sectors" From Ubuntu Via Fsck?

Dec 25, 2010

Palimpsest 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

View 10 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

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







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