update exec.sh
This commit is contained in:
parent
f99223d9bb
commit
9a314d370e
1 changed files with 7 additions and 4 deletions
11
test/exec.sh
11
test/exec.sh
|
@ -1,15 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
host="home.schottelius.org"
|
host="home.schottelius.org"
|
||||||
|
host=""
|
||||||
|
set -x
|
||||||
pcmd()
|
pcmd()
|
||||||
{
|
{
|
||||||
|
echo "$#", "$@"
|
||||||
if [ "$host" ]; then
|
if [ "$host" ]; then
|
||||||
ssh "$host" "$@"
|
ssh "$host" "$@"
|
||||||
else
|
else
|
||||||
"$@"
|
$@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pcmd ls /
|
#pcmd ls /
|
||||||
pcmd cd /; ls "/is not there"
|
#pcmd cd /; ls "/is not there"
|
||||||
|
pcmd cd / && ls
|
||||||
|
|
Loading…
Reference in a new issue