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
|
||||
|
||||
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 ls /
|
||||
#pcmd cd /; ls "/is not there"
|
||||
pcmd cd / && ls
|
||||
|
|
Loading…
Reference in a new issue