We have a column in task manager of process view in windows showing the number of handles a process is having. Is there any such so I can view the handles for a process in linux? I have tried a couple of commands like pidstat, ps aux, going thru /proc file system etc.,
If I issue the following and the process doesn't quit, is there a way to view what it's doing with the SIGTERM signal on the stack? Is this done via the pstack command?kill -s SIGTERM <PID>
Does anyone know which component of the GNOME desktop is responsible for interpreting the media buttons on my keyboard? I would like to run this component in KDE, because KDE doesn't handle the media buttons correctly. I am not talking about the icon in the system tray.
I'm running SuSE 11.2 and I have Xine, Kaffeine, and Media Player. They can play DVD's (I got the libdvd packages from the repositories recommended by Novell on their page). However, Xine (and therefore SeaMonkey and FireFox) cannot handle .avi's. What codec handles it? I was sure that I got them all (win32codecs). My previous SuSE version was 10.0 and it played .avi's fine. The version of Xine that I installed was not from the pacman repository and when I just tried the "Switch version" (as shown here: ImageBam - Fast, Free Image Hosting and Photo Sharing) Yast gave me all sorts of error messages such as Mozilla XUL runner being broken. I of course don't want my packages broken.
My other media packages are K3B, Kino, Amarok, XMMS, Audacity, and Audacious. So if I had to switch these to a certain repository, it might end up being a nightmare for this total n00b.
I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.
Description of what the code does or what i intended to do:
1. Created a child process from parent process using 'fork()'
2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.
(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed
Code:
printf("%d ",msg->cpid);
I expected to get the pid of child process, which the child process sent to parent process through the signal.
in Gnome, every applet has an ugly handle to its left, some themes have it more ugly than others.Where can I find an option to disable the handles? in the theme rc file? if so, where exactly?
I'm not sure if this is a Linux standard, but I've always understood that Linux restricts usage of ports below 1025 to root-user only. My question is why was this method developed?My theory is that it's to reduce the possibilty users who may not be as knowledgable with Linux from getting hacked. This is probably wrong though as ports 1025-66535 are available to any program as any user.
I'm trying to figure out how Make handles directories.
How can I modify this makefile so it will put all of the .o files in a separate build directory?
Code:
But make ignores this and still puts main.o in the base directory. And if I refer to the build directory in the dependencies for bandit, make complains about "no rule ..."
I want to keep main.cpp in the base directory, all other sources in the src directory, and all object files in the build directory.
as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.
So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.
I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?
I am a bit confused with MPM. I read one the article here: [URL]. Still have few very basic doubts:
1. What exactly is a MPM, a module has a specific function to do whats the specific function of MPM?
2. What are the "multi processes" it handles? Is it connections? Quoting from the articles: "The main difference between MPMs and normal modules is that only one of the former can be used and multiple ones can be loaded in the latter".
3. There are multiple MPM but aren't they operate differently and may cause conflict when more than one is loaded and operating?
My laptop has an Intel video card. Does Intel have open source drivers that are included in the kernel? I'm kind of curious because I do not have a xorg file, and I did not install any drivers as I had to on my nvidia desktop, yet all of my maximum resolutions come down accordingly.
I'm just curious on what exactly controls the video settings if xorg isn't in the picture.
Also - what relevance does the Fn keys have that probe for a 2nd monitor to Ubuntu? For example, I do not have a 2nd monitor attached, but if I hit Fn F8 over and over, sometimes it changes my resolution. Why is this? Why would that revert my resolution?
I just noticed that one of my blade server has such a abnormal running status.Historically, the three values in file-nr denoted the number of allocated file handles, the number of allocated but unused file handles, and the maximum number of file handles.But it's really strange to see low value for the first column.
I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.
I've been wondering how to remove the two small vertical dotted lines in the panel. [URL] My apologies if this has already been addressed; I couldn't see anything.
I'm using Sendmail 8.13.8 on a CentOS 5.5 vServer (Virtuozzo). I'm using a loop in PHP to send a lot of HTML-mails via sendmail. Each mail is a mail with individual statistics for our users, so its not mass mailing, bcc is not an option. It all works fine, but when I take a closer look there is a problem heading our way with a high number of mails: For each mail sendmail opens up 43 files. Sometimes these open files get closed again very fast, sometimes not.
Here is an example using the PHP-script below, it sends 20 mails in a loop: [root]# php test-mail.php START: number of open files: 2113 END: number of open files: 2973
This is the worst case. The number of open files (lsof | wc -l) used to send the 20 mails is 860 => 43 open files per mail. Sometimes the files are closed very fast, so I get results like this, too: [root]# php test-mail.php START: number of open files: 2113 END: number of open files: 2242
This shows 129 (3 * 43) open files, so the open files for 17 send mails are already closed, for 3 mails the 129 files are still open. In the worst case and with lots of mails our server crashes, the numfile limit of 8192 in user_beancounters is reached (our ISP won't give us more than 8192). Sendmail DeliveryMode is background. Could it be that sendmail tries to send lots ob mails asynchronously and uses 43 open files for each?
I'm only depending on sendmail to deliver the mails, normally I wouldn't dare to touch the sendmail config (like 'if you don't know what you're doing, don't!'). It is not a problem of PHP. I verified this by sending mails via SMTP localhost to sendmail (opened 43 files per mail) and sending mails via SMTP to an ISP-relay (did not open any files per mail). This is the code for test-mail.php:
PHP Code: <?php $output = shell_exec('lsof | wc -l'); echo "START: number of open files: $output"; // HTML message $msg = '<html><head><title>Test mail</title></head><body><p>Mailbody</p></body></html>'; // Set 'Content-type'-header $header = 'MIME-Version: 1.0' . " "; $header .= 'Content-type: text/html; charset=iso-8859-1' . " "; for($i=0; $i<20; $i++) { // send mail, this opens up 43 files for each mail('you@yourdomain.com', 'Testmail '.$i, $msg, $header, '-f [email]bounce@yourdomain.com[/email]'); } $output = shell_exec('lsof | wc -l'); echo "END: number of open files: $output"; ?>
The app in linux server(CentOS 5.3) uses files from a mount directory(Shared windows directory in read only mode). At the same time, the same file might be edited by user in windows env. We were assuming that as the windows folders are mounted in read-only mode in linux so any change done by user in windows environment would be fail safe i.e. can be safely committed to the file. But when the file concurrently used both by Linux and as well by windows, at some point linux does not release the file handles and the files get corrupted(deleted too). Earlier we were using win2k server and this step was hardly reproducible and win2k was releasing file handles quickly. But with centos, we really had touch time managing files.
I have been working in macromedia dreamviewer for editing html and php files, Just now I moved to linux system by installing xampp , my question is that I need a best html and php editor that supports both the design view and code view as like in dreamviewer.
I have installed postfix and dovecot on my server and thought postfix will not only take SMTP connection from my e-mail client like Outlook, but also handles "mailx" commands from the server. However, it looks like sendmail is still responsible for sending mails from "mailx". I tested this by turning it on/off using "service sendmail stop" and "service sendmail start". Mails sent using "mailx" will only be sent when sendmail is up. When I did "yum info sendmail", it lists sendmail as an installed package. Is is safe to remove sendmail by running "yum erase sendmail", and let postfix handles "mailx" also?
I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?
I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process
In case that NFS client of fedora is set to cache nfs file handle, where is the cache stored such as /var/lib/nfs?If it's stored in memory instead of directory tree, what command can I know the combination of file names and file handles with?OS in my test environment: Fedora Core 6