[CentOS] remote command execution

Wed Mar 19 03:16:48 UTC 2008
Les Mikesell <lesmikesell at gmail.com>

Joseph L. Casale wrote:
>> I just tried:
>>
>> % cat /tmp/test.sh
>> nohup /usr/bin/tail -f /tmp/test.in > /tmp/test.out 2>&1 &
>>
>> (note that all output is redirected)
>>
>> C:\> plink user at host /tmp/test.sh
>> ...
>> C:\>
>>
>> on the remote host
>> % echo "10" >> /tmp/test.in
>> % cat /tmp/test.out
>> ...
>> 10
>> % ps ax|grep tail
>> ...  /usr/bin/tail -f /tmp/test.in
>>
>>
> 
> Right, but do something that takes a while, like a large dd from /dev/random and see what plink does :)

Can you give an actual example of something that fails?

-- 
   Les Mikesell
    lesmikesell at gmail.com