Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

jirlbeck

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?