Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
how to start a process
Name: pepe Date: January 27, 2000 at 09:30:04 Pacific
Comment:
could someone please help me with this:
I need to start process ‘proces1’ in the background with parameters ‘-c go –l’. Then start process ‘proces2’, stop it, restart it in the background
Name: James Date: January 29, 2000 at 09:42:55 Pacific
Reply:
I am not sure exactly what you are talking about but csh intoduced(and was adopted by other sh) & for a background process. try # sleep 10 & and then ps. You see the process ID of sleep? If you want to kill it just # kill "$pid" where $pid is the process ID. If you want a short cut there is a system variable $! that contains the pid of the last process put into the background by &. So if sleep 10 & was your last background process # kill $! will end it.
0
Response Number 2
Name: modulus Date: January 31, 2000 at 21:28:44 Pacific
Reply:
Assuming you want to launch a process called `myproc' with a couple of args into the background. the command would be: myproc -t arg & Notice that the `&' is not a typo. To kill the process simply use: ps aux | grep "myproc" (to get the process id) then use the kill command.
Summary: How to obtain a process name (note: name, not id) from the current processes are running on the sys ? say, if we use ps -ef then the last argument is always the process name rite ? if so, then how to ...
Summary: is there anyone who can tell me how to start a ftp-deamon? I think it's been installed on the unix server but I can't manage to get it started Please help me it's urgent ...
Summary: how to write a shellscript which can do that. That display on the screen -how many user logged in -newlogins since last sample -who has logged out since las sample -how many processe started since...