From 09876ee932b5c887494a4c580cab3f8bf45cb71b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Mar 2008 06:48:33 +0100 Subject: [PATCH] add exec test script --- test/exec.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 test/exec.sh diff --git a/test/exec.sh b/test/exec.sh new file mode 100755 index 0000000..31d40db --- /dev/null +++ b/test/exec.sh @@ -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"