Topic "session.ExecuteCommand syntax issue/problem"

Author Message
jirlbeck
[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 ("./!""QArenameStoreFiles.sh"), 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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Duplicate post:
http://winscp.net/forum/viewtopic.php?t=13669
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