add exec test script

This commit is contained in:
Nico Schottelius 2008-03-14 06:48:33 +01:00
parent d617cbcb26
commit 09876ee932
1 changed files with 15 additions and 0 deletions

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"