10-25-2010
thanks all. thanks mike. it now works
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys
I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file.
#!/bin/sh
echo " $2 $3 $4 $5 $6 $7
isql -w400 -U$2 -S$5 -P$3 << xxx
use $4
go
print"**Changes to the table... (0 Replies)
Discussion started by: magikminox
0 Replies
2. UNIX Desktop Questions & Answers
Hello evry1,
Trying to come up with a script that picks content from another file, and saved the new file with the original file name but adding the time when the script is run to the new file name.
after which it compresses this new file.
Thanks in advance (1 Reply)
Discussion started by: Targ
1 Replies
3. Homework & Coursework Questions
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Actually im new to Unix and trying to learn shell scripting in uwin(freeware) on windows xp machine.
I tried writing the shell script with vi mode, but my problem is I am unable to save this script file even after specifying :wq option ie I am unable to save the file and quit from vi mode... (1 Reply)
Discussion started by: vikkram
1 Replies
5. Shell Programming and Scripting
hi guys
i have a problem with my file did not work as usual. The problem is i need to open the file and save as using same name and after that the file is work properly. Is it any shell script can do open the file and save as using same name..because i have thousand of file with the same problem (3 Replies)
Discussion started by: zulabc
3 Replies
6. Programming
Hi
I have a bash script which takes parameters
sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC
gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash
I have... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
7. Shell Programming and Scripting
I'm using the following script to check cisco router health and I'd like to save output to a file,
vty_runcmd.sh > /check/check-cisco-health
script works and output is saved to a file. However using it in crontab file is created but output is not printed inside it. In crontab,
*/5 * * * *... (4 Replies)
Discussion started by: marmellata
4 Replies
8. Shell Programming and Scripting
Hi All
I would like to get cars DB from this web site link removed , and I am trying to right script to go and parse the web page and save the data for each cars into a file, type of cars, mark, model, but when I look to the source page I found out that the first car type is preselected and the... (3 Replies)
Discussion started by: molwiko
3 Replies
9. Shell Programming and Scripting
Hy guys,
My name is Alex, i am new here and I hope to find some answers. I am trying to run a expect script to telnet to a mikrotik router, run a command (export), and save the output of that commant to a file (outputfile.txt). The problem is that only part of the output is saved to... (2 Replies)
Discussion started by: axexandru
2 Replies
10. Shell Programming and Scripting
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
ipgrab
IPGRAB(8) System Manager's Manual IPGRAB(8)
NAME
ipgrab - A Verbose Packet Sniffer
SYNOPSIS
ipgrab [ -ablmnPprTtwx ] [ -c cnt ] [ -i if ] [ expr ]
DESCRIPTION
ipgrab reads and parses packets from the link layer through the application layer, dumping explicit header information along the way. It
is a lot like tcpdump except that it prints almost every header field.
Options
-a Do not display application layer data.
-b Buffer standard output. Useful when you're redirecting output to a file.
-c cnt, --count cnt
Terminate after receiving cnt packets.
-C proto, --CCP proto
Assume a particular CCP protocol, such as MPPC. MPPC is the only one supported as yet.
-d Dump extra padding in packets. For example, according to an IP header, the packet ends at a certain point, but the link layer may
have padded it beyond that. This option displays the padding. Not valid in minimal mode.
-h, --help
Display usage screen with a brief description of the command line options.
-i if, --interface if
Makes ipgrab listen to packets on interface if, e.g., eth0. If this option is not used, the default interface will be assumed.
-l Don't display link-layer headers. The following protocols are considered to be link layer: ARP, CHAP, Ethernet, IPCP, LCP, LLC,
Loopback, PPP, PPPoE, Raw, Slip.
-m Minimal mode output. When operating in this mode, ipgrab displays only brief header information.
-n Don't display network-layer headers. The following protocols are considered to be network layer: AH, ESP, GRE, ICMP, ICMPv6, IGMP,
IP, IPv6, IPX, IPXRIP.
-P string
Initiate a dynamic port mapping. This option must be followed by a string of the form `<protocol>=<port>', such as `http=8080'.
-p Dump packet payloads beyond what IPgrab parses. In other words, if IPgrab does not parse a particular application, this option will
dump application data in hex and text format.
-r FILE
Read packets from a file, rather than an interface. The file shoule be created in "raw" format, such as with '-w' option.
-T Do not display timestamps in minimal mode.
-t Don't display transport layer headers. The following protocols are considered to be transport layer: SPX, TCP, UDP.
-v, --version
Display version number and then quit.
-w FILE
Write the raw packets to a file, rather than the screen. The packets will not be parsed. The file can be read with the '-r' option.
-x Hex dump mode. After processing each layer, dump out the contents of that layer in hex and text. Only valid in main mode.
expr Berkeley packet filter expression. See tcpdump(8) man page for details and examples.
SEE ALSO
tcpdump(8)
NOTES
Requires libpcap version 0.3 or greater to be installed.
AUTHOR
Michael S. Borella
http://www.borella.net/mike/
mike@borella.net
07 March 2007 IPGRAB(8)