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 /README | |
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 'README')
-rw-r--r-- | README | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |