Following may help you in same. Please use code tags for commands/code/Inputs you use in your posts as per forum rules.
You can take variables and do operations as per your need in place of printing them(which I have done for an example).
Hope this helps.
Thanks,
R. Singh
Last edited by RavinderSingh13; 02-17-2015 at 03:44 AM..
Reason: Added one more solution
This User Gave Thanks to RavinderSingh13 For This Post:
I am trying to make a simple script in which i take input from shell and then forward the value to
nawk (BEGIN).
but when i run below mention script so it give no output.
echo "Enter TRUNK GROUP:"
read TGR
cat /omp-data/logs/5etr/080422.APX | nawk -F"|" -v P=$TGR '
BEGIN {
TG=P;... (1 Reply)
I need to set up a strange system through which an arbitrary command is sent to a number of different servers (well, actually, VPS accounts). We have a command "vpass" that "passes" a command from the root level to resident VPS accounts. Suppose I wanted each VPS to do some trivial thing, like... (3 Replies)
Hi, I had to create a new thread as the old thread had to much of confusion
I have two files shashi.sh and py.py
I want to pass a variable from shashi.sh to py.py. How do i achieve that ?.
shashi.sh
export X=12
echo "$("pwd")"
echo "$X"
exec python py.py "$(X)"
py.py... (0 Replies)
Hello,
I have a file with 4 columns.
An arbitrary example is shown below:
a Tp 10 xyz
b Tq 8 abc
c Tp 99 pqr
d Tp 44 rst
e Tr 98 efg
Based on the values in col 2 and col 3, I will execute another program.
I have been running this:... (5 Replies)
I am trying to execute a copy command via shell script. However, on occassion, 2 or more files need to copied. How do I code for the multiple arguments? Does it matter how the files are delimited?
Example: I have a script to copy files from 1 dir to another called duplicate.csh
In most... (1 Reply)
I have a script that kicks off several processes in the background and stored their pids in a variable as follows:
PID_DUMP_TRAN=$PID_DUMP_TRAN" "$!
so I then have a list of pids
If I echo $PID_DUMP_TRAN I get back a list of pids e.g. 8210 8211 8212
However I then want to kill all these... (5 Replies)
I have a shell program that calls another shell program
the following code works
. chkTimeFormat.sh "10/9/12 17:51:19:783."|read c
but when I am passing the the time in a variable like in the code below, the shell chkTimeFormat.sh is not returning proper value
time="10/9/12... (9 Replies)
Hello All,
May i please why my shell variable is not getting passed into awk script.
#!/bin/bash -vx
i="1EB07C50"
/bin/awk -v ID="$i" '/ID/ {match($0,/ID/);print substr($0,RSTART,RLENGTH)}' /var/log/ScriptLogs/keys.13556.txt
Thank you. (1 Reply)
Discussion started by: Ariean
1 Replies
LEARN ABOUT DEBIAN
sip-dig
sip-dig(1) sofia-sip-utils sip-dig(1)NAME
sip-dig - Resolve SIP URIs. This is an example program for sresolv library in synchronous mode.
Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Original Created: Tue Jul 16 18:50:14 2002 ppessi
Synopsis
sip-dig [OPTIONS] uri...
Description
The sip-dig utility resolves SIP URIs as described in RFC 3263. It queries NAPTR, SRV and A/AAAA records and prints out the resulting
transport addresses.
The default transports are: UDP, TCP, SCTP, TLS and TLS-SCTP. The SIPS URIs are resolved using only TLS transports, TLS and TLS-SCTP. If
not otherwise indicated by NAPTR or SRV records, the sip-dig uses UDP and TCP as transports for SIP and TLS for SIPS URIs.
The results are printed intended, with a preference followed by weight, then protocol name, port number and IP address in numeric format.
Command Line Options
The sip-dig utility accepts following command line options:
-p protoname
Use named transport protocol. The protoname can be either well-known, e.g., 'udp', or it can specify NAPTR service and SRV identifier,
e.g., 'tls-udp/SIPS+D2U/_sips._udp.'.
--udp
Use UDP transport protocol.
--tcp
Use TCP transport protocol.
--tls
Use TLS over TCP transport protocol.
--sctp
Use SCTP transport protocol.
--tls-sctp
Use TLS over SCTP transport protocol.
--no-sctp
Ignore SCTP or TLS-SCTP records in the list of default transports. This option has no effect if transport protocols has been explicitly
listed.
-4 Query IP4 addresses (A records)
-6 Query IP6 addresses (AAAA records).
-v Be verbatim.
Return Codes
0when successful (a 2XX-series response is received) 1when unsuccessful (a 3XX..6XX-series response is received) 2initialization failure
Examples
Resolve sip:openlaboratory.net, prefer TLS over TCP, TCP over UDP:
$ sip-dig --tls --tcp --udp sip:openlaboratory.net
1 0.333 tls 5061 212.213.221.127
2 0.333 tcp 5060 212.213.221.127
3 0.333 udp 5060 212.213.221.127
Resolve sips:example.net with TLS over SCTP (TLS-SCTP) and TLS:
$ sip-dig -p tls-sctp --tls sips:example.net
1 0.500 tls-udp 5061 172.21.55.26
2 0.500 tls 5061 172.21.55.26
Environment
#SRESOLV_DEBUG, SRESOLV_CONF
Reporting Bugs
Report bugs to <sofia-sip-devel@lists.sourceforge.net>.
Author
Written by Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
Copyright
Copyright (C) 2006 Nokia Corporation.
This program is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Version 1.12.11devel Sat May 7 2011 sip-dig(1)