10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I am working on assignment that captures all the records(2 columns one column contains names and other contain date of birth) from excel sheet stored in a directory and checks for current date and month.
If it matches current date and month then the matched records are printed as... (1 Reply)
Discussion started by: giridhar276
1 Replies
2. Shell Programming and Scripting
Hi,
This is a vcd file.A vcd file may have 'n' modules.
1) I need to capture the data in bold,i.e. the module names (shown in bold)
2) Also i need to capture the data inside each individual module,say for tst_bench_top ,i need to capture data from line 4 to line 20 ...
I just want one... (2 Replies)
Discussion started by: veerabahu
2 Replies
3. IP Networking
Helo Folks :)
i had read an answer in this thread unixcom/programming/117551-calculate-ip-header-checksum-manually.html
i need to know what the software name that was used to capturing packet data in a network, just like the packet's capture output that showed up in the thread.
Thank you :)... (5 Replies)
Discussion started by: polutan
5 Replies
4. Shell Programming and Scripting
Hii, Friends,
I want your help in one of my problem.
My problem is as follows.
I have a flat file as follows (Just a sample)
MHT011
01(DOT)8750707asdfas8609
03(DOT)ASD3453ASD
09(DOT)876JHT87
11(DOT)sfd324ert
TTT077
01(MOB)876786klj897
06(MOB)876JHT87
07(MOB)sfd324ert... (4 Replies)
Discussion started by: anushree.a
4 Replies
5. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
6. Shell Programming and Scripting
Hi everyone!
Can any one help me out regarding capturing relevant data from a file.
For e.g, if i want to capture the comment written after "Prompt:" for a particular date, like for this case what would be the command to capture the tag written after "Prompt:" for Date: 2009-03-20.
A... (7 Replies)
Discussion started by: muhmsida
7 Replies
7. Shell Programming and Scripting
I have input file like
RDBMS FALIURE UTY8703 'USER_WORK.TEST' .HIghest return code '12'
I want to parse data which comed between first quote till next quote
USER_WORK.TEST
can you please suggest how to do that (4 Replies)
Discussion started by: scorp_rahul23
4 Replies
8. Shell Programming and Scripting
Hi guys,
I need a way to capture the host on the next-to-last hop in a traceroute output.
The last output is the destination but I need to capture the router just before the last hop.
I can do this in perl but I'm not so sure about Shell...
I'm on AIX 5.3 using ksh
any ideas?
... (3 Replies)
Discussion started by: TivoliGUY
3 Replies
9. UNIX for Dummies Questions & Answers
I have a file with some values in a tab delimted format
Eg:
'test' contains:
a<tab>b<tab>c<tab>Trk_12345678
now i need to capture this value 'Trk_12345678' into a variable say 'x' and append that value of 12345678 to 12345679 and store is back to a new 'test1' file as :
'test1'... (11 Replies)
Discussion started by: shiroh_1982
11 Replies
10. Shell Programming and Scripting
I am newbie to unix shells world.
I am trying to capture a background process id into a file so that it can be killed later.
this process is basically a java program running in background as:
java TestApp &
this returning process id immediately. So how can i redirect that pid into a file.... (1 Reply)
Discussion started by: bvreddy
1 Replies
PCAP_INJECT(3) Library Functions Manual PCAP_INJECT(3)
NAME
pcap_inject, pcap_sendpacket - transmit a packet
SYNOPSIS
#include <pcap/pcap.h>
int pcap_inject(pcap_t *p, const void *buf, size_t size);
int pcap_sendpacket(pcap_t *p, const u_char *buf, int size);
DESCRIPTION
pcap_inject() sends a raw packet through the network interface; buf points to the data of the packet, including the link-layer header, and
size is the number of bytes in the packet.
Note that, even if you successfully open the network interface, you might not have permission to send packets on it, or it might not sup-
port sending packets; as pcap_open_live() doesn't have a flag to indicate whether to open for capturing, sending, or capturing and sending,
you cannot request an open that supports sending and be notified at open time whether sending will be possible. Note also that some
devices might not support sending packets.
Note that, on some platforms, the link-layer header of the packet that's sent might not be the same as the link-layer header of the packet
supplied to pcap_inject(), as the source link-layer address, if the header contains such an address, might be changed to be the address
assigned to the interface on which the packet it sent, if the platform doesn't support sending completely raw and unchanged packets. Even
worse, some drivers on some platforms might change the link-layer type field to whatever value libpcap used when attaching to the device,
even on platforms that do nominally support sending completely raw and unchanged packets.
pcap_sendpacket() is like pcap_inject(), but it returns 0 on success, rather than returning the number of bytes written. (pcap_inject()
comes from OpenBSD; pcap_sendpacket() comes from WinPcap. Both are provided for compatibility.)
RETURN VALUE
pcap_inject() returns the number of bytes written on success and -1 on failure.
pcap_sendpacket() returns 0 on success and -1 on failure.
If -1 is returned, pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error text.
SEE ALSO
pcap(3), pcap_geterr(3)
5 April 2008 PCAP_INJECT(3)