script should echo mkdir

Advertisement

colfer
Guest

script should echo mkdir

When I use a "/script" that includes a "mkdir" the console does not show the command or its result. The "mkdir" does work, but no line is shown in the console.

This is similar to my previous feature request
"script should not overwrite file upload progress"
https://winscp.net/forum/viewtopic.php?t=2108
Thank you for adding that!

Generally, I think the console should echo every command, or have an option to do so.

Reply with quote

Advertisement

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

Re: script should echo mkdir

As on most systems, mkdir command does not print anything unless it fails. Why do you mean by "it does not work"?

Reply with quote

Guest

That is what I mean. You are right that it is normal behavior for an interactive shell FTP/SCP session. In my situation, a program I wrote, an editor, uses WinSCP to upload files. I simply create a text file that contains the WinSCP scripting commands and then ShellExecute "winscp.com" with "/script=filename".

Since the user is not typing in the commands, it would be good for the user to see what the script is doing. Thus, an echo would be a good option. For me. Thanks...

Reply with quote

harrysmith0
Guest

no echo

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: no echo

harrysmith0 wrote:

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.
Redirect output of the application to "nul".

Reply with quote

Guest

Re: no echo

martin wrote:

harrysmith0 wrote:

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.
Redirect output of the application to "nul".

Thank you very much. However, am I right in thinking in this case you must enter username and password in the script. I only get it to work if you do that but it is not desirable as the script is to be run by different users with different passwords. Is it possible to have the username/password challenge and then nothing or redirect to file?

Thanks

Reply with quote

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

Re: no echo

Thank you very much. However, am I right in thinking in this case you must enter username and password in the script. I only get it to work if you do that but it is not desirable as the script is to be run by different users with different passwords. Is it possible to have the username/password challenge and then nothing or redirect to file?
You cannot do that.

Reply with quote

oneK
Joined:
Posts:
1
Location:
Portugal

I would love this feature also 8)

Nuno
GlobalWarming Awareness2007 (<invalid hyperlink removed by admin>)

Reply with quote

Advertisement

You can post new topics in this forum