Sergio Avila Castaneda wrote:
>
> Hi All!
>
> One of my friends asked me about how can he run an IOS command from a Unix
> box...
>
> ***hold on!!!! I know that Expect can do that... keep reading***
>
> But keep the IOS command output in the Unix box in order to process it
> later with a script program???
>
> E.G.
>
> I want to run from the Unix box to the Cisco box:
>
> Router# sh ip int brief
>
I usually use a different utility, the good ole' 'pmwho' available at
ftp://ftp.livingston.com/pub/le/contrib/pmwho . You have to modify a
couple things in the C code (pmwho is a shar archive), but it works
beautifully to execute commands via telnet and simply pipe stdout to
your shell.
david
> And the output of this command I want to keep it in a local file
> (file.txt) in the Unix box, and later run some script that mine data from
> that file, like...
>
> Unix$ processit.sh < file.txt
>
> Do you know if Expect (or any other tool) can do this???
>
> Any hint about how I and my friend can acomplish this is very welcome
>
> Thanks in advance!
> -------------
> Sergio Avila Casta�eda
> CENTEC, Red Uno CCSI, CCNA, CSA
> Servicios Educacionales Palm Vx User!
> (52)5447-5113, Fax (52)5447-5197
>
> "Contrary to popular opinion, Unix is user friendly, It just happens to be
> very selective about who it makes friends with."
>
> ___________________________________
> UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
> FAQ, list archives, and subscription info: http://www.groupstudy.com
> Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
___________________________________
UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
FAQ, list archives, and subscription info: http://www.groupstudy.com
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]