Hi
I am very new at this. Did some C 15 years ago but not an expert, then or now
Have Watcom C free compiler on XP.
Trying to write something (C/PERL/EXPECT ?) that will telnet to a (list of later) device (cisco router) pass my username and password to the device to log in, do some things by passing commands to the telnet window, and, if possible read the screen generated, and decide what to do or not do from that screen. I have a small program telneting to one box working with system("telnet x.x.x.x"); and I can initialize and define char variables with
char *name; and
name="smith";
but I am stuck after this !
example:
telnet a.b.c.d
pass name and password
enable
pass password
show ver
if screen shows IOS is version (have to search for a string) xxx, then do these commands, else, do some others.
Also, does Watcom (or?) have their own telnet or ssh so I don't need to use the system's ?