General :: Termination Of A Process Release File And Other Resources ?

Apr 15, 2011

If I forget to close a file, a socket or any other resource in a Linux process, and the the process terminates, will those resources be freed? Is there a difference if the process terminates normally or is killed?

View 3 Replies


Programming :: Creates A Child Process With Fork And, When The Child Ends, Receives The SIGCHLD Signal And Wait For Its Termination?

May 23, 2011

I have a doubt about signals in C programming. I have done this little program to explain it. It creates a child process with fork and, when the child ends, receives the SIGCHLD signal and wait for its termination.Ok, quite easy, BUT when I execute this code the SIGCHLD signal is received twice, first as an error (returns -1) and the second one to finish the child process.I don't understand the meaning of the first received signal. Why is it generated? Is the code wrong? (if you add the SIGINT and press Ctrl+C during the execution it also receives two signals instead of one)

Code: #include <stdio.h>
#include <unistd.h>
#include <string.h>


View 4 Replies View Related

Slackware :: Release Of Slackware And Hardware Resources?

May 8, 2011

How does the relationship of release of Slackware relate to hardware capability of a PC?

What I mean to ask is, in general, I presume a 10 year old PC is likely to have difficulty running 13.37 and might be better off with an earlier release or am I wrong? My current PC is 5 years old and has an AMD Athlon 64 X2 Dual-Core 3800 processor and 2MB of RAM. It manages fine with Slackware 64 13.0. I have installed 13.37 on another partition but not decided whether to move to it or not. One thing I was wondering was - is 13.37 more demanding of resources for my ageing PC or could it be on the contrary - the newer kernel is actually more efficient and and less demanding of resources?

View 7 Replies View Related

General :: Termination Of Xtern Launching An Application With Xterm -e?

Jun 8, 2011

I wanted to launch sqlite3 with the command:

xterm -e sqlite3 /path/to/database "SELECT * FROM TABLE;" &

The xterm window flashes for a moment and then terminates. Exactly the same result is encountered with:

a) xterm -e /bin/bash -l -c "sqlite3 /path/to/database "SELECT * FROM TABLE;"" (as suggested in man xterm)

b)giving an alias in .bashrc to:
sqlite3 /path/to/database "SELECT * FROM TABLE;"
and running: xterm -e alias

c)giving: xterm -e echo "something"

d)using: konsole -e sqlite3 /path/to/database "SELECT * FROM TABLE;" &

If a launch sqlite3 with:

xterm -e sqlite3 /path/to/database &

The xterm window launches with no problem and sqlite3 opens the database as expected. If I enter "SELECT * FROM TABLE;" every thing works as expected and I get the correct result.

The same applies if I launch xterm with: xterm & and then: sqlite3 /path/to/database "SELECT *FROM TABLE;" to the command line.I sometimes use xterm -e to launch applications to a separate window and never had the slightest problem. I suspect it might be a bash thing (konsole and echo not working as well as above stated) and not an xterm thing. I made a search in man bash for quoting and backslashing but it didn't bright up things.

View 2 Replies View Related

General :: Kills A Process Internally Or From Where It Picks File To Continue Its Process?

Jan 8, 2010

one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.

View 3 Replies View Related

General :: Where To Download Latest Release Open Office DVD .iso File

Sep 4, 2009

About a couple of days ago I'm sure I saw that Open Office was offering a DVD file download of their latest version. It was including versions for Win. Mac and Linux all on the one DVD. Now, after buying a DVD burner for my 'puter, I have been unable to find that information again.

View 4 Replies View Related

General :: Release File Lock In SAMBA 3.2.5 Share - MS Word - Filename - Is Locked For Edit

Sep 20, 2010

I'm having problem with the Samba 3.2.5 file share which host my MS-Word Document the user (user1) already restart her PC but still she cannot open the file from MS Word.

Here's the file and it's status on the samba drive:


How to reset the Samba file locking mechanism ?

View 6 Replies View Related

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./ to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

General :: Name Of Log File Where Boot Process Is Logged?

Apr 19, 2010

I'm using CentOS 5.3. After booting up, where can I find the log file that contains if all services where successfully loaded or not? For example when computer boots you get a list of start services and they can be OK or FAILED. Is there a log file where this information is kept? I had a look in the following directory /var/log/ but not sure which one will contain the informaiton that I need.

View 2 Replies View Related

General :: How To Determine What Process Has A File Open

Jan 19, 2010

I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created.So, how can I determine what process has a particular file open in Linux? Preferably a one-liner type or a particular Linux tool solution would be optimal.

View 3 Replies View Related

General :: Use The 'at' Command To Run A File That Checks ALL Process

Jun 26, 2011

I'm trying to use the 'at' command to run a file that checks ALL process running at 5:00pm and does a system load check? Any advice on where to start?

View 7 Replies View Related

General :: How To Determine What File Tripped Up Tar Process

Feb 8, 2010

I am writing, well actually enhancing, a script to do a daily backup of important data on my PC to a second hard drive.I wish to tar my home directory to a single file - and will probably use gzip as well.So I decided to work out the correct tar syntax in a terminal first - here is what happened.I opened a terminal window.I cd to a directory not part of my home directory.I issued the command..Quote: tar -cvf mytar.tar /home/ken tar processed a bunch of files, the last being .netrc.I examined the tar file and it contains .netrc.The contents of .netrc are correct.I scrolled back through the list of files in the terminal window and do not see any error messages.I guess the question is... how do I determine what file tripped up the tar process?

View 8 Replies View Related

General :: Executing And Killing A Process From Sh File?

Dec 21, 2010

i have recently started a bit of sh coding. i was trying out sm commands from an sh file.

txt1="top > temp.txt"
eval $txt1


View 14 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

General :: Recover Deleted File If It Is Still Opened By Some Process?

May 13, 2011

$ cat important_file > /dev/null &
[1] 9711
$ rm important_file


View 2 Replies View Related

General :: Filesystems - How To Find Which Process Had Created Any File

May 16, 2011

Is there any way to know which process had created any file in Linux Red Hat/CentOS 5?

View 2 Replies View Related

General :: Track File Opening Attempts From A Process?

Aug 23, 2011

I am running an Ubuntu(10.04) box and I am attempting to understand an error in a program.I don't have access to the source of this program, but I know it isn't working properly because it cannot find a particular file. I was wondering if it would be possible to monitor what file are accessed(more specifically denied access) by a process. My first idea was to breakpoint on fopen, but I didn't have any success.

View 1 Replies View Related

General :: Read A PID From A Text File And Kill The Corresponding Process?

Jun 26, 2010

I've got a command in a shell script:

php ./script.php > output.txt & echo $! >
This results in my script launching as a background process with output routed to


View 3 Replies View Related

General :: Write A Log File Of A User Interactive Process Using Tee ?

Sep 30, 2010

I want to write the sequence of operation of a user interactive process (Question asked by the process and answers user entered) in to a log file.

I used tee command, Precess1 | tee -a FileName

This write only the Question asked by the process. Does anybody know how to write the user inputs also to the same file, synchronized?

View 2 Replies View Related

General :: Motion Run Error - Cannot Create Process ID File

Jun 7, 2011

root@sok-HP-ProBook-4520s:/usr/local/etc# motion
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion 3.2.12 Started
[0] Motion going to daemon mode
[0] Exit motion, cannot create process id file (pid file) /var/run/motion/

View 4 Replies View Related

Server :: Release File Is Not Downloading

Jun 26, 2009

I want to install ubuntu to client machines. I tried to install using apache server.. I installed that well. and it is working well. i tested that.I did every configuration like this link [url]

But when i give the image server ip address to the image server. it promote a message says that release file cannot be download...

I dont know y i'm geting this error..

In that link there is image call netboot installer. i boot from that .iso am i correct or i didn't understand that thing.

View 2 Replies View Related

General :: Comparing Resources Using Top?

Apr 6, 2011

Fedora 15 Alpha

3861 user 20 0 904m 128m 33m S 0.7 6.4 1:11.52 xulrunner-bin
1323 user 20 0 1555m 95m 31m S 13.5 4.8 4:06.87 gnome-shell
3494 user 20 0 1028m 50m 21m S 12.8 2.5 1:43.32 evolution

I just wondering what is the difference between RES, SHR, and VIRT.

1) The VIRT always seems to be higher. Is this using the paging file system. (virtual memory on the harddisk, the swap memory)

2) Is the RES memory the actual physical RAM memory?

3) Is shared memory sharing memory with other processes?

4) Just a final question. As I am running on a HP Mini 210, memory and CPU is a resource I don't have a abundence of. So if was to compare for example 2 difference browsers i.e. firefox and midora. What should I brench mark between to 2 to find what one uses less resources?

View 2 Replies View Related

Ubuntu :: Release Lock On File On Computer?

Sep 21, 2010

Ubuntu 10.04, I transferred a Word Processor document via SSH2 from kristin's laptop to my desktop computer on my network the other day. Since that time, both computers have been shutdown. Today, I wanted to open the document and got the following notice.

Quote: Document file 'Sound Fix.odt' is locked for editing by: kristin ( 15.09.2010 16:08 )

Open document Read Only or open a copy of the document for editing.All I can figure is, maybe I didn't exit the gFTP application properly. How do I release this lock on this file on my computer?

View 2 Replies View Related

Debian :: Backports .org Release File Expired?

Apr 6, 2011

I tried to install nvidia drivers & when I tried aptitude update it says that 'backports.debian .org' Release file has expired ignoring......How long does it normally take to update?

View 5 Replies View Related

General :: Sharing Resources Across Processes ?

Jul 7, 2010

How would I demonstrate that sensitive application resources are not shared across processes that are owned by different users?

View 2 Replies View Related

General :: Java Process Without Memory Detail In Proc File System?

May 13, 2010

To get the kernel messages of new java process, i refer the details from /proc/<java pid>/stat and /proc/<java pid>/statm files. For some java processes, I didn't find any details in the /proc/<java pid>/statm file. It has only 7 number of 0s. But /proc/<java pid>/stat file has the details. And also this kind of process will have the life time of nearly 1 minute.

Kernel version using: Linux-2.6.18-8.1.8.el5 Is there any possibility of java process without the memory details in the /proc/<java pid>/statm file? If it is possible, how to know the memory related details of that processes?

View 1 Replies View Related

General :: Fork: Resources Temporarily Unavalbale?

Apr 30, 2010

I am continuously getting fork: resources temporarily unavailable even when I am typing ls command.

View 1 Replies View Related

General :: Minimalistic Distro For Low Resources Netbook?

Jun 5, 2010

I want a distro I can run on my very weak netbook, and perhaps on one or two other of my other computers as well. Netbook is an Asus eeePC 900SD (Celeron 800mhz, 512MB RAM, 8GB SDD, 1024x600 screen resolution), very slow with some distros, but nimble with others.

I've tried:
Ubuntu Netbook Remix (EasyPeasy), Leeenux, JoliCloud: too resource hungry on this machine, too much storage consumed just for the OS. Peppermint OS - pros: works well, nice, very few bugs, fast.cons: space requirements, memory requirements make it a bit tight, cloud apps are slower than locally installed ones, the permanent inclusion of a paid-subscription cloud app, and fascist support forum moderators. a bit overweight, and way too cloud-centric - many of the cloud apps are on unreliable servers and not always available or slow down your netbook to a crawl while it waits for some executable code to come off the web. Puppeee version 1.0 (and Fluppy for all netbooks), works very well, very fast, in little RAM with little disk space required. Some may not like the overcrowded menus and their structure that's inherited from the parent Puppy. Puppy 5.1: works very well compared to the 4.3 series. wifi works now. But same menu comments as for Puppeee. Slitaz: at 30MB for the iso, it sounded promising, and the interface is very nice, much nicer than any of the other minimalistic distros. but Wifi? no help on the horizon.
AntiX: some stuff just didn't work properly, including Wifi WPA. but it looked real good. For the space and memory requirements look to Peppermint. TinyMe2010: this is the size of Puppy, and polished like Peppermint. Based on a slimmed-down Unity, it is still in beta, the installer won't install from USB stick. If you have a CD to install from this is a great distro! Lets hope they fix the USB issue soon! Very promising... keep a watch on this one.


I've tried dozens of distros, and find it frustrating to deal with the various crippling flaws of some distros and the egos of the assemblers of other distros (where they can easily fix something but refuse to because they prefer an older faulty way). I am at my whit's end here. Please help me someone.

From us Noob's point of view: the new re-release of Windows XP for Legacy computers with only 64MB of RAM, it may be time to re-visit our thinking that minimalistic Linux distros are the only kid on the block for those slower machines with less resources. Time to get back to the drawing board and make these a little more user-welcoming. ;-)

View 14 Replies View Related

Ubuntu :: Cannot Update 10.04 (Failed To Fetch ... Malformed Release File?)

Jun 2, 2010

I am having a problem updating my Ubuntu (10.04 Lucid Lynx). I see that other have had this problem before back on Intrepid but I was unable to find any information about people having this problem recently. When I try to update using Update Manager, I get the following errors:


View 4 Replies View Related

General :: Automatically Kill Processes That Over Time Uses 95%+ Of Resources?

May 3, 2010

I don't know about your computer but when mine is working properly no process is sucking 95%+ over time. I would like to have some failsafe that kills any processes behaving like that. This comes to mind because when I woke up this morning my laptop had been crunching all night long on a stray chromium child process.

This can probably be done as a cron job, but before I make it a full time job creating something like this I'd thought I should check here. :) I hate reinventing the wheel.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved