assume your read the filename from table as column fname
If you were to execute the host command hundreds of times it would be VERY slow.
Write to a file instead, then run all the commands afterwards, plus this lets you check
your commands for errors before they mess up.
Last edited by rbatte1; 08-18-2016 at 06:37 AM..
Reason: Added missing /ICODE tag
Hi,
Does anyone know of a Unix command that would give me the most recent file from a list of files with the same names except for the date/time stamp, i.e. kah_en_20070103T2234307Z.zip (with an actual date/time stamp of 1/3/07 4:41 pm), kah_en_20070104T054732Z.zip (with an actual date/time stamp... (6 Replies)
hey......
i hav the follwing scripts needs to run parallel, so i made it as follows,
$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &
then once all these above got completed successfully i have to run
... (3 Replies)
I am an Awk newbie and cannot wrap my brain around my problem:
Given multi-line records of varying lengths separated by a blank line I need to skip the first two lines
of every record and extract every-other line in each record unless the first line of the record has the word "(CONT)" in the... (10 Replies)
Hi,
I have a file that contains some records that I would like to process
each line that I am interested in. My goal is to create a new file that contains only the rest_of_line for each line that matches.
It has the following File Format
command, platform, rest_of_line"
I am searching the... (2 Replies)
Can someone help me coding a loop (like for loop in C)? I mean what is the syntax....?
My requirement is, i have to send every successive string searched using awk to a csv file till the end of the file..Please help. (1 Reply)
I have a file has following records
policy glb id 1233 name Permit ping from "One" to "Second" "Address1" "Any" "ICMP-ANY" permit
policy id 999251
service "snmp-udp"
exit
policy glb id 1234 name Permit telnet from "One" to "Second" "Address2" "Any" "TCP-ANY" permit
policy id 1234... (3 Replies)
I've read the man page of singal(3) but I still can't quite understand what is the difference between SIGINT, SIGALRM and SIGTERM.
Can someone tell me what is the behavioral difference among these 3 signals in kill command?
Thanks! (2 Replies)
So I made my own unix shell, but i want to make a background process when using the & appended to the end, so far most of the commands seem to work (except cd, but thats another story)
right now here is what I have got.
Im thinking maybe I shouldn't be using switch and maybe switch it to... (27 Replies)
Hello Gurus ,
Could you help me with my below requirement
In my script I will start a process ,it takes some time to complete the process.After completion it will create a file
after that I have to restart the process again
The number of time it will be done will vary but that count we... (4 Replies)
Greetings!
I have a text file that I am trying to process to get the desired output but looks like I will need the community help.
Input File:
a|x|london|consumer|consumer1|country||D|consumer|consumer1|country||1
a|x|paris|consumer|consumer2|country||D|consumer1|consumer2|country||2... (3 Replies)
Discussion started by: bikerboy
3 Replies
LEARN ABOUT DEBIAN
pam_abl
PAM_ABL(1) User Commands PAM_ABL(1)NAME
pam_abl - query or purge the databases used by the pam_abl module.
SYNOPSIS
pam_abl [OPTION] [CONFIG]
DESCRIPTION
Provides a non-pam interface to the infomration stored in the pam_abl module databases. CONFIG is the name of the pam_abl config file
(default: /etc/security/pam_abl.conf). The config file is read to discover the names of the pam_abl databases, the rules that control
purging of old data from them and commands to run when a user or host switches state.
OPTIONS
MAINTENANCE
-h, --help
See this message.
-p, --purge
Purge databases according to purge rules in config.
-r, --relative
Display times relative to now.
-v, --verbose
Verbose output.
NON-PAM INTERACTION
-f, --fail
Fail user or host.
-w, --whitelist
Perform whitelisting (remove from blacklist, does not provide immunity).
-c, --check
Check status. Returns non-zero if currently blocked Prints name: status if verboseness is specified. If more than one host or user is
given, checks only the first host/user pair.
-s, --service
Operate in context of specified service. Defaults to none.
-U, --user
Operate on user (wildcards are ok for whitelisting).
-H, --host
Operate on host (wildcards are ok for whitelisting).
If you specified commands to run in your configuration, those commands will try to run if the host or user switches state (blocked <->
clear) since the last time it was checked. The command will only be able to run, however, if you supply enough information to fill in the
substitutions in the command. For instance, if your host_clr_command uses the %s parameter, you will need to specify the service with -s in
order for the command to actually run.
EXAMPLES
Obtain a list of failed hosts and users:
$ pam_abl
Obtain a full list of failures listing times relative to now:
$ pam_abl -rv $ pam_abl --relative --verbose
Purge old data:
$ pam_abl -p $ pam_abl --purge
Unblock all example.com, somewhere.com hosts:
$ pam_abl -w -H *.example.com -H *.somewhere.com
Fail the host badguy.com and the user joe:
$ pam_abl -f -H badguy.com -U joe
Check whether joe is currently allowed to use your neato service from somehost, running the necessary commands if he switches state:
$ pam_abl -c -U joe -H somehost -s neato
AUTHORS
Andy Armstrong <andy@hexten.net>
Chris Tasma <pam-abl@deksai.com>
REPORTING BUGS
Report bugs to <pam-abl@deksai.com>
SEE ALSO pam_abl.conf(5), pam_abl(8)GNU 01/13/2010 PAM_ABL(1)