Topic "How to get user input executing a remote shell script"

Author Message
ivarodr
[View user's profile]

Joined: 2010-06-10
Posts: 6
Location: Spain
Hi, i am executing a shell script with the command "call myScript.sh" in which i ask some user input.
My question is: How can i get this user input?.
The problem is that it is impossible to send data to the console, it seems that the console is stalled.

THX.
ivarodr
[View user's profile]

Joined: 2010-06-10
Posts: 6
Location: Spain
call
With SFTP and SCP protocols, executes arbitrary remote shell command. With FTP protocol, executes a protocol command.

call <command>
If current session does not allow execution of arbitrary remote command separate shell session will be automatically opened.

The command must not require user input.

Alias: !

XML Log Element: call

Examples:

call mysqldump --opt -u USERNAME --password=PASSWORD --all-databases > all_databases.sql
call gzip -c all_databases.sql > all_databases.gz

Then there is no way to save this pissue??
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
ivarodr wrote:
Then there is no way to save this pissue??

You would have to collect the input prior to starting the WinSCP script and pass it at command-line argument to your shell script.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License