session.ExecuteCommand syntax issue/problem

Advertisement

jirlbeck
Joined:
Posts:
9
Location:
Chicago

session.ExecuteCommand syntax issue/problem

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?

Reply with quote

Advertisement

You can post new topics in this forum