Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Think about Loose Coupling
 
PerlMonks  

Re: access vi through teraterm

by wjw (Hermit)
on Sep 28, 2013 at 01:48 UTC ( #1056093=note: print w/ replies, xml ) Need Help??


in reply to access vi through teraterm

I am not clear on what you are after. The title of your post says you want to access vi via teraterm which you are already doing apparently. What I gather is:

What you have:

  • A minimal linux system
  • A rs232 connection from a windows machine to the linux machine controlled by Teraterm

You want to run Perl scripts on the windows machine that will do things to the linux box.(?)

A quick look at Teraterm shows that there is no API available for it, thus no simple way to control Teraterm from Perl and thus straight forward way to pass things through Teraterm to the linux machine. Thus, Teraterm is unlikely to be part of your solution.

The only thing I can think of to try is to set up the rs232 connection as a network to get tcpip over rs232. Then I would use something like Net::SSH in my Perl scripts on the windows machine to automate whatever it is you want to accomplish on the linux machine. That assumes of course that the minimal linux machine is ssh capable.

It would be helpful to undestand a bit better what you want to do via this connection: Are you manipulating things on the linux box?..or are you just simply sending commands to it?...

Hope that is at least somewhat helpful...

  • ...the majority is always wrong, and always the last to know about it...
  • ..by my will, and by will alone.. I set my mind in motion


Comment on Re: access vi through teraterm
Re^2: access vi through teraterm
by mark4444az (Sexton) on Sep 30, 2013 at 14:11 UTC
    Thanks for your response. There is firmware on the Linux box that has .sh files. I would like to run those scripts from perl, loop though them x amount of times, and gather data. I agree teraterm will not work, I believe your assesment is accurate. I need to setup an rs232 connection and use ssh to run the script files.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-04-20 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls