Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.053 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'python.': 0.02; 'cc:addr :python-list': 0.11; 'python': 0.11; 'investigate': 0.16; 'received:mac.com': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; 'feb': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'references': 0.26; 'subject:/': 0.26; 'am,': 0.29; 'url:mailman': 0.30; 'quite': 0.32; 'url:python': 0.33; 'could': 0.34; 'but': 0.35; 'google': 0.35; 'module.': 0.36; 'url:listinfo': 0.36; 'method': 0.36; 'charset :us-ascii': 0.36; 'hi,': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'list': 0.37; 'received:10': 0.37; 'received:17': 0.38; 'expect': 0.39; 'does': 0.39; 'url:mail': 0.40; 'equipment': 0.61; 'new': 0.61; 'here:': 0.62; "you've": 0.63; 'to:addr:gmail.com': 0.65; '2014,': 0.84; 'header:In-reply-to:1': 0.84; 'url:latest': 0.91 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-02-19_03:2014-02-18,2014-02-19,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1401130000 definitions=main-1402190064 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: SSH/Telnet program to Router/switch From: William Ray Wing In-reply-to: Date: Wed, 19 Feb 2014 09:27:53 -0500 Content-transfer-encoding: quoted-printable References: To: Sujith S X-Mailer: Apple Mail (2.1510) Cc: python-list@python.org, William Ray Wing X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392820082 news.xs4all.nl 2972 [2001:888:2000:d::a6]:40805 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66692 On Feb 19, 2014, at 3:14 AM, Sujith S wrote: > Hi, >=20 > I am new to programming and python. I am looking for a python script = to do ssh/telnet to a network equipment ? I know tcl/perl does this = using expect/send.=20 >=20 > Do we have expect available in python as well or need to use some = other method ? >=20 > Regards > Sujith > --=20 > https://mail.python.org/mailman/listinfo/python-list In addition to the other answers you've received (and noting that you = are familiar with "expect"), you might want to investigate the pexpect = module. Google will give you quite a long list of references to it, but = you could start here: http://pexpect.readthedocs.org/en/latest/ -Bill=