Re: [BUG?] sftp is echoing back prompt and commands in batch mode

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 





Vincenzo Romano wrote:
[..]
As if I'm writing a batch script I want to see the echo of the command and the output so if there is a failure I know where the failure is.

I see: you have a single batch file with no conditionals.
I have multiple dynamic 1-command batches with conditionals.
That makes the big difference.

A simple conditional may be useful within sftp. But I don't believe upstream would accept a full-fledge scripting language as that would be better served with a python script or a real language.

But a few cases it could be useful like:

cd /path
failed:
    mkdir /path
    cd /path
:deliaf
put foo

(Shitty language design constructions, but I'm just throwing out an idea for the wider community and for Darren/Damien to thumb up or down.)


Ben
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux