Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux / Telnet / Batch 1

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
GB
Hello Guys,

You'll have to excuse my niavity, I'm really new to the whole Linux OS, last time I used it was quite a few years ago and even then it was all through Red-Hat.

Anyway, on with the question...

Basicly I have a device connected to my box that recieves commands from a Telnet style app, now i would know exactly what i was doing if i was in windows, but on linux i'm not quite sure what i'm meant to be doing to send commands to the device. Any pointers on how to go about it?

Secondly I need to automate these tasks to run on a regular basis such as every hour or somthing, in windows i would have constructed a batch file or similar to run the commands for me. Is somthing similar avaialable in linux?

Many thanks,

Rob
 
How is it connected to the box? Serial link, or network? If it's the former you can use minicom or for the latter you can use telnet just like Windows.

If you need to automate interaction with the device you can use expect to script the prompts and responses.

Annihilannic.
 
Thanks buddy, it is indeed a serial based link, so minicom will do the trick.

Thanks for the adivce.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top