02 Jul 2013
Math下面的常量和方法都可以直接用。
Math.PI, Math.sqrt(2)
$ tar zcf - stuff | ssh user@server 'cd xxx;tar zxf -'
$ ssh user@server 'tar zcf - stuff' | tar zxf -
$ tar zcf - stuff | ssh user@server 'cat - > stuff.tar.gz'
$ dd if=/dev/sda | ssh user@server 'dd of=sda.img'
$ ssh user@server 'dd if=sda.img' | dd of=/dev/sda
$ ssh user@server 'bash -s' < script.sh