Hi All
when i am using this command in the localhost
[CODE]
Code:
Server_Name:apache:/opt/apache $ ps -ef | grep -i http | grep -i xxxx
root 30383 1 0 10:49 ? 00:00:00 /opt/apache/xxxx/bin/httpd -f /opt/apache/xxxx/conf/httpd.conf
User_name 30384 30383 0 10:49 ? 00:00:00 /opt/apache/xxxx/bin/httpd -f /opt/apache/xxxx/conf/httpd.conf
User_name 30385 30383 0 10:49 ? 00:00:32 /opt/apache/xxxx/bin/httpd -f /opt/apache/xxxx/conf/httpd.conf
User_name 30386 30383 0 10:49 ? 00:00:33 /opt/apache/xxxx/bin/httpd -f /opt/apache/xxxx/conf/httpd.conf
Server_Name:apache:/opt/apache $ ps -ef | grep -i http | grep -i xxxx | awk '{print $10}' | grep -v grep | uniq
/opt/apache/xxxx/conf/httpd.conf
when i use the ssh command to run the same command in another server
Code:
Server_Name:apache:/opt/apache $ ssh -q Server_Name " ps -ef | grep -i http | grep -i xxxx | awk '{print $10}' | grep -v grep | uniq "
0
why the difference happen in the result of this 2 command on localhost and using ssh to run the same command on remote server