Its an application based command which shows the routing table just as below. After each such get command it asks for the user id and password. Problem with my script is that it is successfully taking id password for 101 and displaying the routing table but after that it executes the get command for 102 but doesn't takes id and password and stuck at the user name prompt.
HI All,
I am currently working on one command line application on AIX (Unix Platform).Here i need to use Expect package.
By using Expect package at the top of the script,i want to use just Send command of Expect package to send characters like,
1. Press Enter key
2. Press spacebar
3.... (6 Replies)
Hi all,
After expect catches the string I specify, is there a way to ask expect wait for sometime before running the next send command ?
So my script looks like following,
expect "some string"
#How to ask expect to wait for a while
send "next command"
The reason I want to do this is... (0 Replies)
Hi I have written one shell script , using that i am able to connect to remote machine but i have to
#!/usr/bin/expect -f
set address
set username
set password
set OOLpath
set dbusername
set dbpasswd
set tnsname
set recdbusername
set recdbpasswd
set rectnsname
spawn ssh... (1 Reply)
Hi, the following code is not working. How can I cat the last modified file in the path /asdf. Please help!
expect "asdf%" {send "cat `ls -rt /asdf|tail -1` \r"} (2 Replies)
Hi,
Am trying to transfer file via FTP using expect script from server to client
i need to interrupt the file transfer between server and client
Please help what should used in expect code..
I used
send "ctrl+c\r"
expect "Aborted"
but that didnt work.. I need what should... (3 Replies)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
I have to send few gzipped files from local server to SFTP server.
My Server Info
Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise
Created a bash script and could able to send files to sftp, but i want to send email if transfer is successful.
... (1 Reply)
Hello Everyone,
I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the remote servers where I am logging in.
#!/bin/ksh
#!/usr/bin/expect
touch... (1 Reply)
password check in bash script calling on expect
Background: I have to copy a file from one server, to over 100 servers in a test environment. once the file is copied, it requires to have the permissions on the file changed/verified. These are all linux servers. most of them have the same... (1 Reply)
Hey All,
I am writing one script using expect, that script which is used in spawn will accepts only 1. Enter 2. Ctrl+c
Press Control-C to exit, Enter to proceed.
Could some one share some thoughts to send the above user inputs in linux expect block ?
Thanks,
Sam (0 Replies)
Discussion started by: SCHITIMA
0 Replies
LEARN ABOUT FREEBSD
rtquery
RTQUERY(8) BSD System Manager's Manual RTQUERY(8)NAME
rtquery -- query routing daemons for their routing tables
SYNOPSIS
rtquery [-np1] [-w timeout] [-r addr] [-a secret] host ...
rtquery [-t op] host ...
DESCRIPTION
The rtquery utility is used to query a RIP network routing daemon, such as routed(8), for its routing table by sending a request or poll com-
mand. The routing information in any routing response packets returned is displayed numerically and symbolically.
The rtquery utility by default uses the request command. When the -p option is specified, rtquery uses the poll command, an undocumented
extension to the RIP protocol supported by the commercial gated routing product. When querying gated, the poll command is preferred over the
request command because the response is not subject to Split Horizon and/or Poisoned Reverse, and because some versions of gated do not
answer the request command. The routed(8) utility does not answer the poll command, but recognizes requests coming from rtquery and so
answers completely.
The rtquery utility is also used to turn tracing on or off in routed(8).
The following options are available:
-n displays only the numeric network and host numbers instead of both numeric and symbolic.
-p uses the poll command to request full routing information from gated. This is an undocumented extension RIP protocol supported only
by gated.
-1 queries using RIP version 1 instead of RIP version 2.
-w timeout
changes the delay for an answer from each host. By default, each host is given 15 seconds to respond.
-r addr
asks about the route to destination addr.
-a passwd=XXX
-a md5_passwd=XXX|KeyID
causes the query to be sent with the indicated cleartext or MD5 password.
-t op changes tracing, where op is one of the following. Requests from processes not running with UID 0 or on distant networks are gener-
ally ignored by the daemon except for a message in the system log. gated is likely to ignore these debugging requests.
on=tracefile
turns tracing on into the specified file. That file must usually have been specified when the daemon was started or be the
same as a fixed name, often /etc/routed.trace.
more increases the debugging level.
off turns off tracing.
dump dumps the daemon's routing table to the current tracefile.
SEE ALSO routed(8)
Routing Information Protocol, RIPv1, RFC1058.
Routing Information Protocol, RIPv2, RFC1723.
BSD June 1, 1996 BSD