Computing.Net > Forums > Unix > how to start a process

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Need Red Hat driver for m... Trident 8400 PCI/AGP Driv...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how to start a process

how to get a process name ? www.computing.net/answers/unix/how-to-get-a-process-name-/3945.html

how to start ftp deamon? www.computing.net/answers/unix/how-to-start-ftp-deamon/3687.html

how to write a shellscript sleep www.computing.net/answers/unix/how-to-write-a-shellscript-sleep/5528.html