jtanmay Posted March 17, 2010 Share Posted March 17, 2010 Hi all, I am working on a project which needs to execute rsh command from php. I have tried running the rsh command from my command line, which does execute the command on the remote host, but when I run the same command using exec command in php, it returns me error code 1 and null result. Below is some sample code. exec(rsh remotehost -l username pwd) Any ideas or setting I need to make? Thanks in advance Quote Link to comment Share on other sites More sharing options...
rbpkirow Posted November 7, 2016 Share Posted November 7, 2016 Hello. I have the same problem. I think it is because of the user. root user was given the rights for access to remote server, but I do not know which user run the script, so the user is not given the rights for accessing the server. Have you solved the problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.