Server :: Program To Fetch PID Of Running Process
Mar 5, 2010I want to access the process control block to retrieve a process' pid and priority. Any code or the steps to do it.
View 9 RepliesI want to access the process control block to retrieve a process' pid and priority. Any code or the steps to do it.
View 9 RepliesI have already tried trickle and wondershaper. I need a program that can limit the speed of download/upload of an already running program. Similar to the how NetLimiter in Windows limits already running processes. Using Linux.
View 1 Replies View RelatedI wonder how one can, if at all, run an X program in the background *in an emulator sub-shell process*. What I mean is to launch a program in an emulator, e.g, by xterm -e gedit
but with gedit (in this example) running in the background from inside the xterm sub-process, so that the xterm will accept other commands. In the above, gedit will run in the foreground, and of course, if you do
xterm -e gedit &
then xterm will run in the background, not gedit.In short, I would like to achieve the same thing as "gedit &" as you manually do in xterm, but from another shell. What I aim to do is write an X init script to achieve this result (to have the emulator open and a program or two running from it, in the background, at the X startup).
I am running an Lamp ubuntu 9.10 server and are all these processes supposed to be running?
Memory:
1829 www-data 209080 kB /usr/sbin/apache2 -k start
2052 www-data 207560 kB /usr/sbin/apache2 -k start
[code]....
a file or a process that is always running and pinging for example [URL]. returning 1 or 0, when returns 0 (that means have no response) do something else. i already made the something else, basicly sends an email etc.
View 1 Replies View Relatedrecently i setup new LAMP server , after some days faced a strange problem? suddenly the server load goes to 100 or 80 but there is no wearied process running? the normal lod is between 0.5 to 1.5? the server have 2 hdd on hardware raid 0
[Code]...
when I run synaptic I can open the list of apps. and select but then I apply to download and get "error we failed to fetch etc etc." Seems to be an rpm problem but not sure. ????
View 1 Replies View RelatedI'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.
When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
View 1 Replies View RelatedLately when I've tried to update my packages many of them don't update. I get nothing out of the ordinary when using the terminal but when I try to update via the Update manger I get this error message:
Code:
Error message:
Fetch failed: W:Failed to fetch bzip2:/var/lib/apt/lists/partial/mirror.steadfast.net_debian_dists_testing_main_source_Sources Hash Sum mismatch
W:Failed to fetch bzip2:/var/lib/apt/lists/partial/mirror.steadfast.net_debian_dists_testing_main_binary-amd64_Packages Hash Sum mismatch, W:Failed to fetch http://mirror.steadfast.net/debian/dists/testing/updates/main/source/Sources 404 Not Found [IP: 208.100.4.53 80]
[Code]...
I've tried several different mirrors but get the same error with every one. Same result with ftp as well. Yesterday I upgraded to Wheezy and every package successfully upgraded, but today the problem started again.
I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....
I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).
Code...
Why does it come like this?
Should I do any changes in /etc/apt/source/list?
Brand new to Linux. Sort of got thrown in front of the bus if you know what I mean. The company I work for has a Linux server running CentOS 5.4 Company uses Linux for their Email, FTP and Web Server. Have been here a few years dabbling in and out of Linux and now that the old Admin has left the company.....I need to learn it ASAP. The server has run pretty solid until today.
The email server runs SendMail and SpamAssasin. Received lots of complaints today regarding extra SPAM. Noticed that SpamAssassin was not running. Tried to restart it through the WebMin tools and got the following error: Starting spamd: child process [3956] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.
I wanted to know is there any way to fetch last new unread emails of mine from a mail server (like gmail or yahoomail or) with a command and make text file from them in a appropriate directory.
View 1 Replies View Relatedusing samba-3.4.5.I am trying for join samba server[on linux] to domain controller[windows2003], with security=domain in smb.conf. net rpc join -U Administrator%MyPassword But it fails with following debug messages.
rpccli_netlogon_set_trust_password: unable to setup creds (NT_STATUS_ACCESS_DENIED) !
rpc command function failed ! (NT_STATUS_ACCESS_DENIED)
get_schannel_session_key: could not fetch trust account password for domain 'MYDOMAIN'
net_rpc_join_ok: failed to get schannel session key for server MYSERVER for domain MYDOMAIN. Error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
unable to join domain MYDOMAIN
return code = -1.
On occasion I see my bandwidth usage using the gnome system monitor going up to 300kbit/s. I just cant figure out what is causing it. I want to know what process or program in using my network like that? I do ssh into different machines and servers, where I would really like to beable to monitor bandwidth usage. It would be very useful to know which utilities people use to see what bandwidth is being used and by which applications / programs / processes / or threads. I don't even know where to start looking. The two small programs I have found are insufficient. bmon and bwm-ng. And tools like wireshark (packet sniffers) are over kill. I would like some thing in the middle, preferably text console based.
View 3 Replies View RelatedHow to create a c program for an Orphan Process ?
View 5 Replies View RelatedI recenlty set up a headless linux home server by my router will my spare computer parts. I have NFS and even a COD4 server running on it for my friends and me. Because the box is headless, I take controll over it with ssh and start the COD4 server from there, but the problem is, if I close the terminal I have the ssh running from, it closes my server, meaning my desktop needs to be up and running the entire time. That kinda ruins the point of my server
So my question is, is there a way for me to run the command so that it will not close with the terminal AND that I can still send commands to the server.
How do I figure out which CPU's a process has used recently or is currently using?
View 2 Replies View RelatedI looking for a program for automatic or remote reboot process...
Soon I order a VPS and needs a Call of Duty (or other games too) server restarter, if its crash...
I want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:
1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)
2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).
SuSE 11.2, KDE 4.2 after logging in to runlevel 5: I have a process which is calling every 5 seconds /sbin/usbmod (which doesn't exist, hence I get lots of errors when I go to the screen with the boot messages). I want to know which process does the calling. How can I find out?
View 4 Replies View RelatedIs it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two
Using ps (or alternative), how can I tell that PID 123 belongs to app1?
Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
View 5 Replies View RelatedIf I run top, there's a process plymouthd always running, often taking a few percents of CPU. I found that "plymouth" would be a splash screen. My PC is booted already though, I don't need a splashscreen once it has booted. Is this a bug? How can I get rid of this process that always uses %CPU?
View 2 Replies View RelatedMaybe someone can shed some light on this process that is running. It is using my CPU about 100% since there are 2 instances of it running with about 50% used by each.abc_sieve_2.10_i686-pc-linux-gnuI've never noticed it running before and don't think I've installed anything except updates.
View 6 Replies View Relatedif i start a program over ssh by 'foo &'how can i go back 'in' this process, so i could see the output and type in commands?
View 1 Replies View RelatedI am writing network module (LKM). I got process information by current->pid and current->comm. But now i want current state of task. I want to know the state of running the process. I dont find any information in struct task_struct structure. how can i get the state of current running process.
View 1 Replies View RelatedIs there some way to see only the process running in the background?
View 4 Replies View RelatedHow can i get the notification of process which are currently running?
We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?