Page 1 of 1

Process id, how to find for a particular job

Posted: Fri Jun 29, 2007 3:40 am
by srini.dw
Hi,

I know how to find the process id from Director, can you please let me know

1. how to find the process id for a particular job from UNIX command.
2. ps -ef|grep dsapi_slave|grep -v grep|grep USER_NAME

Above command is used to kill a particular job which i found in dsxchange, could not understand, plz explain

Regards,
Srini

Posted: Fri Jun 29, 2007 4:05 am
by ray.wurlod
Don't kill anything you don't understand. There are better ways, beginning with issuing a Stop Job request.

From Director choose Cleanup Resources.

Posted: Mon Jul 02, 2007 2:58 am
by srini.dw
thanks for the answer

Can you plz let me know the below answer
1. how to find the process id for a particular job from UNIX command.

thanks

Posted: Mon Jul 02, 2007 6:40 am
by RelianceDss
srini.dw wrote:thanks for the answer

Can you plz let me know the below answer
1. how to find the process id for a particular job from UNIX command.

thanks
you can do ps -ef | grep <jobname> to get the pid. Take care while working with this PID.

Posted: Mon Jul 02, 2007 9:18 am
by ray.wurlod
Why do you want the process ID?

DO NOT KILL a job's process - it will have several child processes. If you kill the job's process these all turn into zombies.

Posted: Thu Jul 05, 2007 4:21 am
by srini.dw
Thanks Guys.... I needed that syntax.

Iam not going to kill any job.

Posted: Thu Jul 05, 2007 4:22 am
by srini.dw
Thanks Guys.... I needed that syntax.

Iam not going to kill any job.

Posted: Thu Jul 05, 2007 4:22 am
by srini.dw
Thanks Guys.... I needed that syntax.

Iam not going to kill any job.

Posted: Thu Jul 05, 2007 5:59 am
by devidotcom
kill -9 PID

Use the above command. But please don't kill any process as mentioned to you earlier. This was for FYI.

Posted: Thu Jul 05, 2007 9:43 am
by ray.wurlod
There are LOTS of processes. The player process PIDs can be logged by setting APT_PM_SHOW_PIDS environment variable.

Posted: Thu Jul 05, 2007 9:22 pm
by ArndW
devidotcom wrote:kill -9 PID

Use the above command. But please don't kill any process as mentioned to you earlier. This was for FYI.
NEVER do a kill -9 {pid} for DataStage processes unless all other options have been tried.