No preamble, just the PID.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
n=0
while [ $n -lt $num_nodes ] ; do
- read line
- pid=${line#Pid:}
+ read pid
try_command_on_node $n "ls -l /proc/${pid}/exe | sed -e 's@.*/@@'"
echo -n "Node ${n}, PID ${pid} looks to be running \"$out\" - "
if [ "$out" = "ctdbd" ] ; then
DEBUG(DEBUG_ERR, ("Unable to get daemon pid from node %u\n", options.pnn));
return ret;
}
- printf("Pid:%d\n", pid);
+ printf("%u\n", pid);
return 0;
}