8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying to select the rows in a fixed width file based on values in the columns.
I want to select only the rows if column position 3-4 has the value AB
I am using cut command to get the column values. Is it possible to check if cut -c3-4 = AB is true then select only that... (2 Replies)
Discussion started by: ashok.k
2 Replies
2. Programming
I have a value X, a value DX and an odd integer N (say N=9) and want to create an array such that
let X = 10, DX = 2 and N = 9
DIST(1) = X - 4 * DX
DIST(2) = X - 3 * DX
DIST(3) = X - 2 * DX
DIST(4) = X - DX
DIST(5) = X
DIST(6) = X + DX
DIST(7) = X + 2 * DX
DIST(8) = X + 3 * DX
DIST(9)... (2 Replies)
Discussion started by: kristinu
2 Replies
3. Shell Programming and Scripting
Hi,
I have input data.
9214919702; B5; 1;20070216;
9231590437; BY; 1;20070215;9;20091022;12;20091022;
9211765888; AZ; 1;20080802;1;20080802;14;20091027;
9231592590; BY; 1;20070215;9;20091026;9;20091026;
9252412219; MM; 1;20070217;
9214917135; MM; 1;20070215;
9214917056; B5; 1;20070215;... (8 Replies)
Discussion started by: suresh3566
8 Replies
4. UNIX for Advanced & Expert Users
Hello..
i want a ppt on unix filters..
can anybody gv me d link 4 that?? (1 Reply)
Discussion started by: shweta_babbar
1 Replies
5. UNIX for Dummies Questions & Answers
Hey all, I need a command line that creates a new file named whatever, say stuff.txt in the current working directory which contains the number of directories in the current working directory, followed by the number of empty files in the current working directory, followed by the name of the... (2 Replies)
Discussion started by: corpsegrinder
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
I am a newbie to Unix . I am just trying to understand the difference between various filters for ps. Can someoen pelase explain me whta is the difference between using /usr/bin/ps -ef | grep <PID> or <Process name> and /usr/bin/ps -auxwww| grep <PID> or <Process Name>. (1 Reply)
Discussion started by: sillybirdie123
1 Replies
7. UNIX for Dummies Questions & Answers
how to filter one particular row from one text file and copy it in another? (1 Reply)
Discussion started by: rajanandhini
1 Replies
8. UNIX for Dummies Questions & Answers
Anyone know where I can find good documentation for IPF on the Internet?
Thanks,
Chuck (1 Reply)
Discussion started by: 98_1LE
1 Replies
FGADM(8) System Manager's Manual FGADM(8)
NAME
fgadm - filtergen command program
SYNOPSIS
fgadm [ check | reload | save | stop ]
DESCRIPTION
fgadm is a simple command interface for managing filtergen(8) based packet filters.
USAGE
fgadm can be used to stop existing filters (thus turning them off), reload new packet filters, save currently running filters for
longevity, and to check filter scripts for errors before reloading.
The following commands are accepted by fgadm:
check Check the filter script /etc/filtergen/rules.filter for errors. The generated filter will be printed on standard output, and errors
printed to standard error.
reload Replace the current live packet filter with the one in /etc/filtergen/rules.filter. The script will be tested for errors before
reloading.
save The current live packet filter will be saved in a distribution-friendly way. On Red Hat systems, this will save the iptables or
ipchains firewall that is currently loaded into the kernel to load at boot with the iptables or ipchains initscript.
stop This command will flush the current live packet filter out and put it in a default accept mode, thus no firewalling will be in
place. This is useful to abort firewalls in an emergency.
EXAMPLES
One may find the following sequence of commands useful for making firewall changes on live servers:
# at now + 2 min
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
at> fgadm stop
at> ^D<EOT>
job 53 at 2004-06-07 17:25
# fgadm check
# fgadm reload
# atq
53
# atrm 53
# fgadm save
FILES
/etc/filtergen/rules.filter
Packet filter descriptions are read from this file when fgadm is used.
/etc/filtergen/fgadm.conf
This file alters the behaviour of filtergen as called from fgadm.
BUGS
fgadm save does not work on Debian systems with iptables due to a lack of common sense in the iptables package.
SEE ALSO
filtergen(8), filter_syntax(5), filter_backends(5)
AUTHOR
fgadm was written by Jamie Wilkinson <jaq@spacepants.org> for the filtergen package, to ease maintenance of filtergen-based firewalls.
June 7, 2004 FGADM(8)