9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi friends, here is my problem.
I have three files like this..
cat file1.txt
=======
unix is best
unix is best
linux is best
unix is best
linux is best
linux is best
unix is best
unix is best
cat file2.txt
========
Windows performs better
Mac OS performs better
Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
2. Shell Programming and Scripting
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
3. Shell Programming and Scripting
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies
4. Shell Programming and Scripting
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Discussion started by: scriptscript
5 Replies
5. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
7. Windows & DOS: Issues & Discussions
We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies
8. Shell Programming and Scripting
I want this script to read notes and print the contents of any file that starts with messages and is possibly followed by a period and a digit.
I've made this code, but how do I make it so that IF there is a period and a digit. Right now it only prints out the result if it is for example;... (8 Replies)
Discussion started by: HardyV2
8 Replies
9. Shell Programming and Scripting
Hi Experts.
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran1.P
/home/Dave/Program/Tran2.P
/home/Dave/Program/Tran3.P
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies
snmpm_network_interface_filter(3erl) Erlang Module Definition snmpm_network_interface_filter(3erl)
NAME
snmpm_network_interface_filter - Behaviour module for the SNMP manager network-interface filter.
DESCRIPTION
This module defines the behaviour of the manager network interface filter. A snmpm_network_interface_filter compliant module must export
the following functions:
* accept_recv/2
* accept_send/2
* accept_recv_pdu/3
* accept_send_pdu/2
The semantics of them and their exact signatures are explained below.
The purpose of the network interface filter is to allow for filtering of messages (accept or reject) receive and send. This is done on two
levels:
* The first level is at the UDP entry / exit point, i.e. immediately after the receipt of the message, before any message processing is
done (accept_recv) and immediately before sending the message, after all message processing is done (accept_send).
* The second level is at the MPD entry / exit point, i.e. immediately after the basic message processing (accept_recv_pdu) / immediately
before the basic message processing (accept_send_pdu).
Note that the network interface filter is something which is used by the network interface implementation provided by the application (
snmpm_net_if ). The default filter accepts all messages.
A network interface filter can e.g. be used during testing or for load regulation.
DATA TYPES
port() = integer() > 0
pdu_type() = 'get-request' | 'get-next-request' | 'get-response' | 'set-request' | trap | 'get-bulk-request' | 'inform-request' | report | trappdu
EXPORTS
accept_recv(Addr, Port) -> boolean()
Types Addr = ip_address()
Port = port()
Called at the reception of a message (before any processing has been done).
For the message to be rejected, the function must return false .
accept_send(Addr, Port) -> boolean()
Types Addr = ip_address()
Port = port()
Called before the sending of a message (after all processing has been done).
For the message to be rejected, the function must return false .
accept_recv_pdu(Addr, Port, PduType) -> boolean()
Types Addr = ip_address()
Port = port()
PduType = pdu_type()
Called after the basic message processing (MPD) has been done, but before the pdu is handed over to the server for primary process-
ing.
For the pdu to be rejected, the function must return false .
accept_send_pdu(Addr, Port, PduType) -> boolean()
Types Addr = ip_address()
Port = port()
PduType = pdu_type() > 0
Called before the basic message processing (MPD) is done, when a pdu has been received from the master-agent.
For the message to be rejected, the function must return false .
Ericsson AB snmp 4.19 snmpm_network_interface_filter(3erl)