Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

which command is used to stop a running process in unix?

Answer Posted / rhino

Hi Sivakumar,

When we know the answer it would be good to post it , As
some of them might not able to find the answers and this
site would help them to get their issues addressed. Here is
how this goes

stop <pid> -- is the command to stop , Below example
explains this better

Ex Prog. to print 10000 numbers

#!/bin/sh
x=1
while [ $x -le 10000 ]
do
echo "No is. $x"

x=`expr $x + 1`
done

If you wish to stop this , Login to the different a/c get
the pid of the prog running as this will take some time to
execute you find sufficient time to do this

Login to other session on the same directory -- give ps -a
and check the prog. running stop it using below

ps -a ---> is the command used to check all the processes
running

stop 17872 (17872 is the pid of the program -- This will
stop the prog. as below

o/p :

No is. 8128
No is. 8129
[1] + Stopped (SIGSTOP) ./prnNo1

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of grep command in unix?

1105


Write a command that will display files in the current directory, in a colored, long format.

1151


hw will u use awk in replacing cahrs and files

3176


What are filter commands in unix?

1101


Why is it called grep?

968


Differentiate cat command from more command.

1075


What is the command to find maximum memory taking process on the server?

1144


Who command in unix operating system?

1079


What is command substitution?

1259


Is it inbetween or in between?

997


How do I find previous commands in unix?

1120


Which command can you use to find the currently running process in unix server?

1065


What does 'mkdir' command do in UNIX?

1237


What do know about tee command?

1098


What is the command to view process running?

1065