07-27-2014
This is not an homework assignment. I am implementing a routing protocol for which i need to run the simulation many times with changed values (Changing the value of variable $var1).
So, would you mind to answer/help please?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all...
I am executing a comman in a shell script but the command needs a user input of character 'y' as input so it stops in between...may i know is there is any way of giving that character as input in the shell script itself???...thanks in advance.... (6 Replies)
Discussion started by: santy
6 Replies
2. Shell Programming and Scripting
He guys.
Basically I want to make a script that can add, delete and view stuff in a external file called config.txt. I can open it up in Joe but im not sure how to read in the user input or using commands automatically in joe to edit, save then quit.
Problem area below:
1) echo "Add... (1 Reply)
Discussion started by: Pits
1 Replies
3. Shell Programming and Scripting
I have a current code working(named subst1) having a user be able to type this line to substitute words using the sed command:
subst1 old-pattern new-pattern filename
Here is my shell script:
#!/bin/bash
# subst1
ARGS=3
E_BADARGS=65
if
then
echo "Usage: `basename $0`... (1 Reply)
Discussion started by: Todd88
1 Replies
4. Shell Programming and Scripting
Solaris 10
Korn shell ksh,
Hi there,
I have figured out to get yesterday's date which is using the below command:
TZ=GMT+24; date +%d-%b-%Y to get the format of 30-Sep-2008 and
TZ=GMT+24; date +%Y%m%d to get the format of 20080930.
I need this two format. In my perl script below I need... (4 Replies)
Discussion started by: bulkbiz
4 Replies
5. Shell Programming and Scripting
Hello,
i want to take the input from user and according to that variable's value search in file emp.lst. Here is what i came up with
echo -e "Enter string to be searched :\c"
read str
sed -n '/\$str/p' emp.lst
this is not working! any idea why?Thanks in advance! :) (4 Replies)
Discussion started by: salman4u
4 Replies
6. Shell Programming and Scripting
First off I have read the man pages for sed and am still having trouble working on a script to remove portions of a log:
My goal is to take a log file to be emailed, read the file and strip the portions away AFTER the line MIME-Version:1.0
and strip away until it to the line starting with... (4 Replies)
Discussion started by: murphybr
4 Replies
7. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
8. Shell Programming and Scripting
I have the following script used, i am new to shell scripting. tryign to understand.
in the put $BASE_FOLDER/$base_name holds which path.
What does it mean by $1
second path in put command is it constructing this path: /user/hive/warehouse/stage.db/$1
what is $1 holding in above path.
... (2 Replies)
Discussion started by: cplusplus1
2 Replies
9. Shell Programming and Scripting
Hie everyone
i have a complex sed command line which work fine for a static value given
example
sed -n '/SQL ID\:\ 1111111111111/!b;:a;/\*\*\*\*\*\*\*\*\*\*\*\*/!{$!{N;ba}};{/*/p}' ./MyInputFile.txt
what i want is something like that
sed -n '/SQL ID\:\... (2 Replies)
Discussion started by: ade05fr@yahoo.f
2 Replies
10. Shell Programming and Scripting
I need to be able to use a sed command as a variable in a bash script. I have the sed command that almost works the way I want it. the command is
sed -n '/inet/,/}/p' config.boot
This gets me this result:
inet 192.168.1.245
}
I need to get the IP address into a variable so I... (9 Replies)
Discussion started by: edlentz
9 Replies
LEARN ABOUT MOJAVE
rtquery
rtquery(1M) System Administration Commands rtquery(1M)
NAME
rtquery - query routing daemons for their routing tables
SYNOPSIS
rtquery [-np1] [-w timeout] [-r addr] [-a secret] host...
rtquery [-t operation] host...
DESCRIPTION
The rtquery command is used to query a RIP network routing daemon, in.routed(1M) or GateD, for its routing table by sending a request or
poll command. The routing information in any routing response packets returned is displayed numerically and symbolically.
By default, rtquery uses the request command. When the -p option is specified, rtquery uses the poll command, an undocumented extension to
the RIP protocol supported by GateD. 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. in.routed does
not answer the poll command, but recognizes requests coming from rtquery and so answers completely.
The rtquery command is also used to turn tracing on or off in in.routed.
OPTIONS
The following options are supported:
-a passwd=XXX Causes the query to be sent with the indicated cleartext or MD5 password.
-a md5_passwd=XXX|KeyID
-n Displays only the numeric network and host addresses instead of both numeric and symbolic names.
-p Uses the poll command to request full routing information from GateD. This is an undocumented extension RIP proto-
col supported only by GateD.
-r addr Asks about the route to destination addr.
-t operation Changes tracing, where operation is one of the actions listed below. Requests from processes not running with UID 0
or on distant networks are generally 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, directing tracing into the specified file. That file must have been specified when the daemon
was started or have the name, /var/log/in.routed.trace.
more
Increases the debugging level.
off
Turns off tracing.
dump
Dumps the daemon's routing table to the current trace file.
-w timeout Changes the delay for an answer from each host. By default, each host is given 15 seconds to respond.
-1 Queries using RIP version 1 instead of RIP version 2.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWroute |
+-----------------------------+-----------------------------+
SEE ALSO
in.routed(1M), route(1M), gateways(4), attributes(5), icmp(7P), inet(7P), udp(7P)
Routing Information Protocol, RIPv1, RFC 1058
Routing Information Protocol, RIPv2, RFC 2453, STD 0056
SunOS 5.10 24 Apr 2002 rtquery(1M)