Topic "Executing a shell script (program) on remote UNIX server."

Author Message
joelignall
[View user's profile]

Joined: 2011-11-16
Posts: 9
Location: Work
Hello, I saw one topic answered in the negative but I figured I'd give this a shot anyway. Does anyone know how to run a shell script (program) on a remote UNIX server? The SSH Windows XP version we use (Tectia) has the following sytanx for running remote scripts;
"ssh2 UserID@Machine /alps/system/ialps_remove.ksh"

Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
So do you want to execute the script with WinSCP, instead of with Tectia?
You can do it this way:
winscp.com /command "open UserID@Machine" "call /alps/system/ialps_remove.ksh"
_________________
Martin Prikryl
joelignall
[View user's profile]

Joined: 2011-11-16
Posts: 9
Location: Work
Thank you very much, extremely helpful. I only had to tweak what you sent slightly in order to have passwordless execution (no prompts). In case it helps anyone else, here is my sample.

winscp.com /command "open username:pw@servername" "call /home/x104150/testscript.ksh" "exit"

Thanks again!!!
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