ccollect/test/exec.sh

16 lines
164 B
Bash
Raw Normal View History

2008-03-14 05:48:33 +00:00
#!/bin/sh
host="home.schottelius.org"
pcmd()
{
if [ "$host" ]; then
ssh "$host" "$@"
else
"$@"
fi
}
pcmd ls /
pcmd cd /; ls "/is not there"