ccollect/test/exec.sh
Nico Schottelius 9a314d370e update exec.sh
2008-03-14 09:25:04 +01:00

18 lines
213 B
Bash
Executable file

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