RE: remote command execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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@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 :)

jlc
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux