add exec test script
This commit is contained in:
parent
d617cbcb26
commit
09876ee932
1 changed files with 15 additions and 0 deletions
15
test/exec.sh
Executable file
15
test/exec.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
host="home.schottelius.org"
|
||||
|
||||
pcmd()
|
||||
{
|
||||
if [ "$host" ]; then
|
||||
ssh "$host" "$@"
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
||||
pcmd ls /
|
||||
pcmd cd /; ls "/is not there"
|
Loading…
Reference in a new issue