Ubuntu :: Script To Find PHP Process Running

May 7, 2011

I am trying to write a script that will look for a plugin and check that its running and if not start it
Code:
ps ax | grep -v grep | grep aseco.php
The above should list the process, if I put it into terminal this is incorrect?

View 8 Replies


ADVERTISEMENT

General :: How To Find (and Kill) Process Running On A Certain Port

Aug 12, 2011

Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?

View 4 Replies View Related

Software :: Find The Size Of A Stack When A Process Is Running?

Dec 6, 2010

How do we find the size of a stack when a process is running?

View 1 Replies View Related

General :: Command To Find Out For How Many Milli Seconds A Process Is Been Running

Feb 15, 2011

Is there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .

View 10 Replies View Related

Red Hat :: Find The Dynamic Stack And Heap Size Of A Running Process In Rhel?

Aug 26, 2010

I am trying to find the dyanmic heap size and stack size of a running process in rhel5.5 and rhel6.I read that the 23rd parameter in the file /proc/pid/stat gives the heap size.Can you elaborate more on this.Also is there any other way to do this?

View 5 Replies View Related

General :: Find Out How Much Time An Already Running Process Is Spending In User And Kernel Spac?

Jun 8, 2011

I am currently struggling with one of my tasks.I was asked to find a way how to determine how much time an _already running_ process is spending in user and kernel space.E.G. <some tool> <pid>[Control] + [c]<pid> spent 12.1 seconds in user and 1.52 seconds in kernel space.Does something like this exist? Basically I guess I am looking for something similar to time, except that the process is already running.So..a) Is there a tool which fulfills this task?b) Is there a way to write your own software which does the job? Is it even possible to code something I am looking for?I recently found strace -c -p <pid>, but well, this is not exactly what I was looking for.

View 3 Replies View Related

General :: Find The Parent Process Of A Zombie Process?

May 4, 2010

How do you find the parent process of zombie processes?

When the child process is something where the parent is not entirely obvious...

Is there some way to list processes in tree format or something?

View 3 Replies View Related

Debian :: Running Same Process Multiple Times(from Another Account) / An Instance Of Newsbeuter Is Already Running Error?

Aug 6, 2010

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 Related

Ubuntu :: Keep A Process Running From Ssh

May 21, 2010

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

View 9 Replies View Related

Ubuntu :: 140 Process Running On 9.10 Server?

Mar 5, 2010

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

View 3 Replies View Related

Ubuntu :: Plymouthd Process Always Running

Jun 17, 2010

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

Ubuntu :: Unknown Process Always Running?

Mar 8, 2011

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

Ubuntu :: What Running Process As Root Actually Means

Apr 8, 2010

I just installed Wine (1.1.3* dev release) and installed Notepad++ (OSS) and Net Meter (Freeware, the latest beta is actually OSS too). I also intend to install a few other things later. The only failure so far is the latest WinSCP So it made me wonder about what running a process/software as "root" actually means. When I use U.S.C or 'apt-get install' to install software on my computer, and type my password, it displays that keyring icon on my systray.

Does this mean I am root at that moment? And how about running wine, the wine processes, and any windows *.exe I'm installing and running? I basically am afraid that I am running all the wine-related stuff as root, even though there is no indication that I at least have elevated privileges. What is/are the worst-case scenario(s) about wine?

View 9 Replies View Related

Ubuntu :: Firefox Keeps Freezing The Process Keeps Running?

Apr 23, 2010

Firefox keeps freezing.the process keeps running.I've uninstalled firefox, installed different versions, ie 3.6, 3.7 etc, I've removed my profile folder in my home directory.same results. I've ran firefox as a SU and I get this output from the terminal

(firefox-bin:28892): GLib-WARNING **: g_set_prgname() called multiple times
/home/josh/.gtkrc-2.0:2: error: scanner: unterminated string constant - e.g. `style'
(parent won, so we're not deferring)

[code]....

View 9 Replies View Related

Ubuntu :: Gnunetd Process Running At Startup?

Dec 5, 2010

I installed Gnunet (a secure P2P program) on Ubuntu 10.10 using Ubuntu software centre but had difficulties getting it to work so removed it. However, the gnunetd process loads at startup. It is only visible when typing 'top' in the console and not in the system monitor list of processes.gnunetd --version tells me that it is 0.8.1b sudo apt-get remove gnunetd tells me 'unable to locate package' why the process loads and how to remove it? I can kill it in the console but would like a way of getting rid of it permanently.

View 2 Replies View Related

Ubuntu :: Running A Process Indefinitely As An User?

Feb 27, 2011

i am using Ubuntu 10.04.1 LTS. i only ever contact my ubuntu machine through SSH. everytime i login, i do:

~/downloads/.dropbox-dist/dropboxd &

this launches the dropbox process and all is great. except when i log back into the ubuntu machine via ssh after a few hours, the process no longer exists. how can i get the process to run indefinitely?

View 4 Replies View Related

Software :: How To Tell Which CPU Process Is Running On?

Apr 8, 2009

How do I figure out which CPU's a process has used recently or is currently using?

View 2 Replies View Related

Ubuntu :: X Apps Via SSH - Displaying Already Running Instance Of A Process

Jan 5, 2010

how to configure X11 forwadring over SSH so, that when I open any app over SSH, I get displayed window of a process that is already running on my server (in case its running ), not a new instance of it.

View 3 Replies View Related

Ubuntu :: Unison GUI Disappears - Process Remained Running

Dec 18, 2010

I've just installed Unison. I created the default profile, selecting one of my subdirectories as the source. That done, the GUI disappeared, although a unison-2.32.52- process remained running. I can start another GUI session and, regardless of if I kill the old process, I can only choose my profile before the GUI disappears again. There is no opportunity to do anything else useful, such as selecting a destination directory.

View 5 Replies View Related

Ubuntu :: Output Data To Running Process In Terminal?

Jul 10, 2011

There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:

Code:
gomoku -b

it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?

I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.

Code:
echo "black" | gomoku -b

just finishes. After that when you type another command like:

Code:
echo "justsometext" | gomoku -b

gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.

How do I pass text to an already running gomoku?

View 2 Replies View Related

Ubuntu :: Find Process Name From Application Name?

Oct 19, 2010

I have searched for the solution with no luck and still wondering if there is a way to find out what's an application process name is from the name of the application itself. And then pkill the process from the terminal.I tried using

Code:
ps -e | grep ....but it says[code]....

View 6 Replies View Related

General :: Ps Show Where Process Is Running From?

Nov 10, 2010

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

View 3 Replies View Related

General :: Cron: Run A Process But Only If It Isn't Running?

Feb 10, 2011

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 Related

Debian :: Switching Into Running Process?

Mar 9, 2011

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

Red Hat / Fedora :: How To Get Running Process State

Jul 2, 2009

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

General :: Way To See Only Process Running In Background?

Feb 23, 2011

Is there some way to see only the process running in the background?

View 4 Replies View Related

General :: Get The Notification Of Process Which Are Currently Running?

Apr 7, 2011

How 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)?

View 3 Replies View Related

General :: Running Process In Background

Jan 14, 2011

Is there any way to run a long process in background so that it still remain in running state even if the user logout the system.

View 12 Replies View Related

Red Hat :: Running A Process Behind The Scenes At Startup?

May 6, 2010

I have not been able to find any information on this, mostly because I am sure I am searching for the wrong terms. Let me explain what it is I need to do.I have a timeclock process that needs to be running all the time on my Red Hat server. Right now, I manually start the process from terminal:Code:# ./timeclockThis runs the process inside the terminal. The only problem is that if I close the terminal by accident, the timeclock stops working. This is all well and good for now, until I get more timeclocks.Then I will need to have one terminal open per. What I would like to do is to make this process run at start up, and run behind the scenes (no terminal). At the same time, I need to be able to re-run the process (again, hopefully behind the scenes) in case the timeclock goes offline or the process crashes.I know very basic things about Linux administration, and I know it is possible to do this (as there are processes now setup by someone else that do this), I just do not know how. EDIT: An idea I had would be to make the script run every minute, checking to see if the process is already running, and if it is not, then to start it. That way it would automatically correct itself if it went offline.

View 3 Replies View Related

Ubuntu :: What Is Process Name Of Flash Player Running Inside Firefox

Jan 9, 2010

Using Ubuntu 9.10 I open up Firefox and run a video from ......com web page. How can I monitor if flash player is running using terminal ps (process) command? What is the flash player process name?

View 8 Replies View Related







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