10-26-2009
Pressing "Enter/Space bar" using Net::TELNET? in Perl
I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router.
How is this done?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anybody help me in writing command "waitfor" for string
"C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module.
I tried the below format :
$telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i');
Getting error as : pattern match timed-out
Plz help me (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
2. Windows & DOS: Issues & Discussions
Hi,
Can anybody help me in writing command "waitfor" for string
"C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module.
I tried the below format :
$telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i');
Getting error as : pattern match timed-out
Plz help me (3 Replies)
Discussion started by: sudhakaryadav
3 Replies
3. Shell Programming and Scripting
in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory.
How to do this..??
Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</');
i want to copy o/p of the command "allip:acl=a1;" in a log file in a particular directory.
Plz suggest.. (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
4. Infrastructure Monitoring
I am trying to install net-snmp on an HPUX box. I am getting the fallowing error message when I try to run the snmpconf file. I installed the fallowing version of
net-snmp
net-snmp-5.0.10.2-HP-UX_B.11.11_9000_800.tar and my
HPUX box is version
HP-UX commnms B.11.11 U 9000/800... (2 Replies)
Discussion started by: krisarmstrong
2 Replies
5. Web Development
I have one syntax to find something from desktop on server, the script is as below, I actually speaking don't know anything in this script.
It creates a window, where i get a drop down boxes with folder names given below and a blank box where i have to put the folder name to search. and then I... (2 Replies)
Discussion started by: patilrakesh1984
2 Replies
6. Shell Programming and Scripting
This is the script:
#!/bin/sh
if ; then rm -rf /usr/share/WallpaperChanger; fi
if ; then rm -rf /usr/bin/wallch; fi;
if ; then rm -rf /usr/share/applications/wallch.desktop; fi
if ; then rm -rf /usr/share/doc/wallch; fi
if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi
echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies
7. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
8. Shell Programming and Scripting
Hi, Here is the errors:
Any help will be greatly appreciated! (4 Replies)
Discussion started by: aixlover
4 Replies
9. Shell Programming and Scripting
the below code will search attr string inside makefile under the modelno on given path.
echo "Enter model no for searching string inside makefile"
read inputs2
#find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \;
#;;I am getting below error.... (7 Replies)
Discussion started by: lathigara
7 Replies
10. AIX
Hi Guys,
When using plink ( plink -ssh $IP) to connect to an AIX box, the password is correct, but always after input the password and click enter I got "access denied", then I am promted for password again, this time no matter what password I give, correct or bad, after I re-click enter, as... (2 Replies)
Discussion started by: kensview
2 Replies
LEARN ABOUT DEBIAN
xorpsh
xorp(1) General Commands Manual xorp(1)
NAME
xorpsh -- XORP Command Shell
SYNOPSIS
xorpsh [-c command] [-t directory] [-e] [-h] [-v]
DESCRIPTION
This manual page documents briefly the xorpsh command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
xorpsh is the command used to interact with a eXtensible Open Router Platform (XORP) router. This command starts up a command line inter-
face (CLI), that allows the configuration of the router and monitoring of the router state.
The xorpsh command provides an interactive command shell to a XORP user, similar in many ways to the role played by a Unix shell. In a
production router xorpsh might be set up as an user's login shell - they would login to the router via ssh and be directly in the xorpsh.
It can also be run directly from the Unix command line.
xorpsh should normally be run as a regular user; it is neither necessary or desirable to run it as root. If an user is to be permitted to
make changes to the running router configuration, that user needs to be in the Unix group xorp.
The Debian package installation automatically sets up both a xorp user and a xorp group to which this user belongs. However, any user can
run the xorpsh command unless locally restricted by the administrator.
OPTIONS
xorpsh allows the following options:
-h Show summary of options.
-v Print verbose information.
-c command
Specify command(s) to execute.
-t directory
Specify templates directory.
-e Exit immediately if cannot connect to the rtrmgr
SEE ALSO
xorp_rtrmgr (8)
This program is documented fully in the Xorp User Manual, chapter Command Structure, available at /usr/share/doc/xorp-doc/ in Debian sys-
tems when the xorp-doc package is installed.
AUTHOR
XORP is Copyright (c) 2001-2009 XORP, Inc.
This manual page was written by Javier Fernandez-Sanguino jfs@debian.org for the Debian system (but may be used by others). For licensing
details please see /usr/share/doc/xorp/copyright.
xorp(1)