Linux / UNIX Tech Support Forum
This is a discussion on PHP exec rsh command within the Linux software forums, part of the Linux Getting Started category; Not sure if I should be posting here, but here is my problem. I am executing the rsh command from ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Not sure if I should be posting here, but here is my problem.
I am executing the rsh command from my windows server to remote linux machine, everything runs fine and I do get the results back. But when I run the same command on the website (php) hosted on same server I get an error code of 1 back. I have added my host name to /etc/hosts.equiv command i use in php exec('rsh remotehostname -l username pwd', $result, $error); it gives an empty array of result and $error = 1 While the same command runs gud from the command line of windows server to which we have hosted our site. Thanks Tanmay |
| The Following User Says Thank You to jtanmay For This Useful Post: | ||
deep khajja (24th March 2010) | ||
|
|||
|
after two days.. atlast i have got the issue fix..
Here is the a simple fix, some one might be help. Apache on Windows server runs with SYSTEM as the user, so we had to add the SYSTEM user in the host.equiv files. Happy coding/debugging Tanmay |
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| save command and command output | savook | CentOS / RHEL / Fedora | 1 | 8th May 2009 05:33 PM |