Same command with issues locally

Advertisement

asnon
Guest

Same command with issues locally

Local is Windows
Remote is Linux

local custom command:
sha256sum --tag * > hash.txt
Two problems: this will not run in the current dir in the local pane, rather the WinSCP installation dir, and it will not pipe the output into a new file called hash.txt.

You can sort of fix the first issue with
sha256sum --tag "!\"\* > hash.txt
However no idea about the second issue.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Same command with issues locally

Output redirections is feature of cmd shell.

You can do the following to some both your problems:
cmd /c cd !\ & sha256sum --tag * > hash.txt

Reply with quote

Advertisement

You can post new topics in this forum