ccollect/test/exec.sh
2008-03-14 06:48:33 +01:00

15 lines
164 B
Bash
Executable file

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