Tagged: ssh

About regex : SED-regex-search-and-replace-with-1

Question Detail SED is not letting me use $1 as a replacement. how can I turn this: test into: this is a test Here’s the code that I thought would work: sed -i ‘s/(test)/this...

About linux : SSH-without-login-record

Question Detail I am making a program that ssh into a remote host. However, I couldn’t find any related login records on the host. I suspected it’s because during ssh, my program uses a...

About php : PHP-exec-shell-script-return-status-2

Question Detail I want to execute shell script from my php application deployed on Red Hat linux server, I added this line to my application exec(“/app/sh/script.sh user server.info.com cmd.com 0 1 1” , $ret_string,...