Since i could do below in shell script,
o=`ssh host1 tail -1 /dir/results`
I thought I could easily do below in perl
my $result = `ssh host1 echo something | /bin/others`
but I coudln't do it... I know there are SSH modules to do this but since I have public key stored in server, I don't need to enter passwd so I thought I could easily do this but it doesn't work..
It seems to totally try to run entire line at remote machine, from my $result to end of the line.
Is there anyway to get this done w/out using the ssh modules?