Forum Moderators: coopster

Message Too Old, No Replies

how to run 'rsh' command from php

         

prasannaperl

9:26 am on Aug 1, 2005 (gmt 0)

10+ Year Member



hi friends,
i am not able to run the 'rsh' command from PHP.
Is anybody help me.
my code is:
system("rsh -n -l username machine_name perl perl_script.pl input_file > output_file");

please tell me is there anything wrong in this code? or suggest an alternative code.
thanks in advance..
Prasanna

jatar_k

2:45 pm on Aug 2, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could try exec or passthru for an alternative.

do you get any errors or any other indications of what might be going wrong?