Topic "session.ExecuteCommand syntax issue/problem"

Author Message
[View user's profile]

Joined: 2014-03-25
Posts: 9
Location: Chicago
The following line has a syntax error when running from WinSCP in Excel using VBA:
mySession.ExecuteCommand(executionPath & Command)

Where executionPath is the remote unix filepath: "/opt/spins/qa/hadoop_publishing/cleansing/bin" and the Command is ("./!"""), which is a bash script. I am using the /! syntax to select the current remote path as the directory where the shell script exists. The script must be proceeded by a ./ in order to run as a Bash script. The command line continually times out with "Terminated by user." What am I doing wrong?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
Duplicate post:

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License