add exec test script

This commit is contained in:
Nico Schottelius 2008-03-14 06:48:33 +01:00
parent d617cbcb26
commit 09876ee932

15
test/exec.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
host="home.schottelius.org"
pcmd()
{
if [ "$host" ]; then
ssh "$host" "$@"
else
"$@"
fi
}
pcmd ls /
pcmd cd /; ls "/is not there"