diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-08 16:43:41 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-08 16:43:41 +0100 |
commit | 521fbb5a8294f4ad924e10bcc871c95be12957ba (patch) | |
tree | 74923bb8092173a77082a2af0081014e2a89cc3f /sshexec.1 | |
parent | Update README (diff) | |
download | sshexec-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.1 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |