local shell execution from /script

Advertisement

mjraley
Joined:
Posts:
4
Location:
Seattle, WA

local shell execution from /script

I am looking at integrating winscp into existing batch jobs.
In windows default FTP client and the moveit freely FTPS client the ftp macro interprets ! to mean start a command shell and run some local command such as "!myprogram.exe" inside the session.

Argueably I can do these before and after the session, but

The GUI mode allows custom commands to execute locally or remotely
but it's not apparent how to or if I can start a local command shell from script. :?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: local shell execution from /script

This is not supported yet.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: local shell execution from /script

This issue has been added to tracker.
_________________
Martin Prikryl

Reply with quote

Austin
Guest

Re: local shell execution from /script

martin wrote:

This issue has been added to
tracker.

First post, while I am at it, what a great program.

hmmm, its great that you can schedule in windows. The problem I am facing is I am transferring files using WINSCP (batch) by windows scheduler followed by another task which runs my "program.exe" the only thing is I don't know of an option that ensures scheduled tasks are complete or I need to find a way to make sure WINSCP has finished the transfer of the desired file's before "program.exe" is executed. :?:

If anyone has suggestions on a better free task scheduler, or another solution I am all ears.

Thanks Austin

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: local shell execution from /script

Austin wrote:

hmmm, its great that you can schedule in windows. The problem I am facing is I am transferring files using WINSCP (batch) by windows scheduler followed by another task which runs my "program.exe" the only thing is I don't know of an option that ensures scheduled tasks are complete or I need to find a way to make sure WINSCP has finished the transfer of the desired file's before "program.exe" is executed. :?:
You can put both your tasks to single .bat file and schedule that.
_________________
Martin Prikryl

Reply with quote

zzgael
Guest

Any news on the "running shell command from /script" subject ?

Hello,

Thank you for WinSCP.

I'm making a small software to manage and run WinSCP scripts directly from right click in explorer directories.
I would love to see the possibility of running shell commands from the script. This would make scripts way simpler, easily shareable, and we wouldn't need an additional .bat file.
Is there something planned for this feature ? Much thanks !

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Any news on the "running shell command from /script" subject ?

zzgael wrote:

I'm making a small software to manage and run WinSCP scripts directly from right click in explorer directories.
I would love to see the possibility of running shell commands from the script. This would make scripts way simpler, easily shareable, and we wouldn't need an additional .bat file.
Is there something planned for this feature ? Much thanks !
Use the call command.
https://winscp.net/eng/docs/scriptcommand_call
Though it has some limitations.

Reply with quote

Advertisement

You can post new topics in this forum