From: Nicholas H. <he...@se...> - 2003-07-29 13:51:09
|
Hey Erik~ How are things on your end? Pretty well here. I am attempting to use the proc_pid_map to see all of the processes for a user on a remote node, so that I can use bpsh to kill them. Some of these processes are running via ssh, so of course they are not in the bproc pid space. Can you tell me where I am going wrong ? bpsh 0 -O /proc/sys/bproc/proc_pid_map echo 1 [root@struggles root]# bpsh 0 ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Jul15 ? 00:00:14 init root 2 1 0 Jul15 ? 00:00:00 [keventd] root 3 0 0 Jul15 ? 00:00:00 [ksoftirqd_CPU0] root 4 0 0 Jul15 ? 00:00:00 [ksoftirqd_CPU1] root 5 0 0 Jul15 ? 00:00:00 [kswapd] root 6 0 0 Jul15 ? 00:00:00 [bdflush] root 7 0 0 Jul15 ? 00:00:01 [kupdated] root 8 1 0 Jul15 ? 00:00:00 [mdrecoveryd] root 14 1 0 Jul15 ? 00:00:00 [scsi_eh_0] root 15 1 0 Jul15 ? 00:00:00 [scsi_eh_1] root 18 1 0 Jul15 ? 00:00:00 [kjournald] root 337 1 0 Jul15 ? 00:00:00 /sbin/dhcpcd -n eth0 root 416 1 0 Jul15 ? 00:00:01 syslogd -m 0 root 421 1 0 Jul15 ? 00:00:00 klogd -2 rpc 431 1 0 Jul15 ? 00:00:00 portmap rpcuser 452 1 0 Jul15 ? 00:00:00 rpc.statd root 496 1 0 Jul15 ? 00:00:00 [rpciod] root 497 1 0 Jul15 ? 00:00:00 [lockd] root 525 1 0 Jul15 ? 00:00:00 /usr/sbin/sshd root 551 1 0 Jul15 ? 00:00:37 sendmail: accepting connections root 577 1 0 Jul15 ? 00:00:00 gpm -t ps/2 -m /dev/mouse root 587 1 0 Jul15 ? 00:00:01 crond daemon 607 1 0 Jul15 ? 00:00:00 /usr/sbin/atd root 614 1 0 Jul15 tty1 00:00:00 /sbin/mingetty tty1 root 615 1 0 Jul15 tty2 00:00:00 /sbin/mingetty tty2 root 616 1 0 Jul15 tty3 00:00:00 /sbin/mingetty tty3 root 617 1 0 Jul15 tty4 00:00:00 /sbin/mingetty tty4 root 618 1 0 Jul15 tty5 00:00:00 /sbin/mingetty tty5 root 619 1 0 Jul15 tty6 00:00:00 /sbin/mingetty tty6 root 5561 1 0 Jul21 ? 00:00:05 /usr/sbin/bpslave -r strugglesi root 5562 5561 0 Jul21 ? 00:00:00 /usr/sbin/bpslave -r strugglesi root 5570 5561 0 Jul21 ? 00:00:06 mond henken 8759 5561 0 10:23 ? 00:00:00 sleep 3600 root 8766 525 0 09:44 ? 00:00:00 /usr/sbin/sshd root 8767 8766 0 09:44 pts/0 00:00:00 -bash root 8819 5561 0 10:24 ? 00:00:00 ps -ef [root@struggles root]# bpsh 0 kill -9 8759 kill 8759: No such process Thanks! Nic -- Nicholas Henke Penguin Herder & Linux Cluster System Programmer Liniac Project - Univ. of Pennsylvania |