Is this possible to do from a script with WinSCP

Advertisement

solutionsville
Joined:
Posts:
23
Location:
Ft Worth

Is this possible to do from a script with WinSCP

Martin,

I am trying to figure out if I can do this from a script via WinSCP.

Basically, it is launch a script, Telnet to another Internal IP, Login and then run two commands and exit from telnet, and end the connection.

Here is how I would do it form SSH or telnet;

Using SSH, it would look like this:
ssh <LAN2 IP address>
<login with linux user/pass, default = root/****>
<from linux prompt>
telnet 192.168.77.101 <this internally connects from the linux processor to the main processor’s command line>
<login with CCI password, default = *******>
debug val 0x00 <to turn off>
debug val 0xDF <to turn on>
exit
exit

Using telnet it would look like this:
telnet <LAN2 IP address> 2323
<login with CCI password, default = ********>
debug val 0x00 <to turn off>
debug val 0xDF <to turn on>
exit

Thanks,

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Is this possible to do from a script with WinSCP

It's difficult to tell if it would even work with WinSCP.
But in any case, WinSCP is a file transfer client. So unless you need to combine a command execution with a file tramsfer, WinSCP's not the right tool for such a task.
Consider using Plink from PuTTY package.
https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html
https://stackoverflow.com/q/39361444/850848

Reply with quote

Advertisement

You can post new topics in this forum