aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-08 16:43:41 +0100
committerMattias Andrée <m@maandree.se>2025-02-08 16:43:41 +0100
commit521fbb5a8294f4ad924e10bcc871c95be12957ba (patch)
tree74923bb8092173a77082a2af0081014e2a89cc3f /README
parentUpdate README (diff)
downloadsshexec-521fbb5a8294f4ad924e10bcc871c95be12957ba.tar.gz
sshexec-521fbb5a8294f4ad924e10bcc871c95be12957ba.tar.bz2
sshexec-521fbb5a8294f4ad924e10bcc871c95be12957ba.tar.xz
Add cd option
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 10 insertions, 1 deletions
diff --git a/README b/README
index 2029106..71bf2af 100644
--- a/README
+++ b/README
@@ -2,7 +2,7 @@ NAME
sshexec - run a command through ssh(1) with normal command syntax
SYNOPSIS
- sshexec [{ [ssh=ssh-command] [dir=directory]
+ sshexec [{ [ssh=ssh-command] [dir=directory] [cd=(strict|lax)]
[[fd]{>,>>,>|,<,<>}[&]=file] }] [ssh-option] ...
destination command [argument] ...
@@ -43,6 +43,15 @@ OPTIONS
In the remote, change working directory to directory
before executing command.
+ cd=strict
+ Fail without executing the command if it's not possible
+ to set directory as the remote working directory.
+
+ cd=lax
+ Continue (but warn) executing the command even if it's
+ not possible to set directory as the remote working
+ directory.
+
[fd]>=file
After changing working directory (assuming one is
specified), create or truncate the specified file and