aboutsummaryrefslogtreecommitdiffstats
path: root/sshexec.1
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 /sshexec.1
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 'sshexec.1')
-rw-r--r--sshexec.115
1 files changed, 15 insertions, 0 deletions
diff --git a/sshexec.1 b/sshexec.1
index 91922f6..d18635d 100644
--- a/sshexec.1
+++ b/sshexec.1
@@ -8,6 +8,7 @@ sshexec - run a command through ssh(1) with normal command syntax
.RB [ {
.RI [\fBssh=\fP ssh-command ]
.RI [\fBdir=\fP directory ]
+.RB [ cd= ( strict | lax )]
.RB [[\fIfd\fP]{ > , >> , >| , < , <> }[ & ] = \fIfile\fP]
.BR } ]
.RI [ ssh-option ]\ ...\,
@@ -107,6 +108,20 @@ In the remote, change working directory to
before executing
.IR command .
.TP
+.B cd=strict
+Fail without executing the
+.I command
+if it's not possible to set
+.I directory
+as the remote working directory.
+.TP
+.B cd=lax
+Continue (but warn) executing the
+.I command
+even if it's not possible to set
+.I directory
+as the remote working directory.
+.TP
.IB \fR[\fPfd\fP]\fP >= file
After changing working directory (assuming one is specified),
create or truncate the specified