#!/bin/bash
for file in $HOME/*;
do
if ; then
rm -i $file > /dev/null
echo "$?"
echo "$file has been deleted"
fi
done
Been trying to learn shell scripting for a week or so now, when i run the script it doesnt display an error message, seems like it runs fine, however it doesnt delete... (10 Replies)
Hi,
I have a doubt in usage of while loop in Shell script as Iam new to this.
My requirement is that,I have two different directories containing some files which move files to other folder after parsing is done.
In my script i wanted to add a while loop which checks for the count in these two... (5 Replies)
Hi,
I'm using Ksh and I'm seeing some of code in my programme as given below.
Could you please let me know whats is this meeaing ?
(I'm new to this unix)
grep "1034" /u/kkk/bin/temp5.lst|cut -c1-2 >/u/kkk/bin/temp6.lst
if
then
echo ""
... (2 Replies)
hi i was wondering if someone can help me with a while loop..i have been looking at this for hours and dont no wut to do..
i have to make a menu style.. to have a beeter understanding i have linked a photo at the bottom...
http://www.mypicx.com/uploadimg/772204432_08022011_1.pngand then
... (1 Reply)
hi.. this is shell scripting lab15.sh
i dont understand this lab i am at the screen shot part. i was wondering if someone can take a quick look at this lab i have linked the doc below. i dont know where to start
i have did the
Required Errorlevels
Errorlevel # but dont... (1 Reply)
Hi Team,
I have created a script and using FOR LOOP like this and it is working fine.
for Month in 201212 201301 201302 201303
do
echo "Starting the statistics gathering of $Month partitions "
done
But in my scripts the " Month " variable is hard-coded. Can you please any one... (3 Replies)
Hi ,
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag when if condition (True) having string as "failed",
could anyone please advise what is the right... (2 Replies)
Hi,
I am using ksh , when i try to use for loop i am getting the expected output.
$for variable in $(ps -fu user | grep -i something/ | grep -i something | grep -v grep | awk '{print $2}');do
> grep $variable /tmp/some_path/*/*
> done
when tried the below to remote server, getting... (4 Replies)
Hello,
I want to pick a random element from a list, and created these 2 lines, which work very well in ksh93. Unfortunately, I get this "bad substitution" message in ksh88.
I'm wondering if there's an equivalent to the second line of my script.. or if I have to install ksh93 to make this... (8 Replies)
Hi,
Want to know, is there any way to restrict a Solaris user to Single Login. Means a particular user can login once and if he or someone else tries to login with his ID then a message displayed "user already logged in" and denies his attempt.
Regard,
Jeet (1 Reply)
Discussion started by: CountJeet
1 Replies
LEARN ABOUT DEBIAN
rblcheck
RBLCHECK(1) User Commands RBLCHECK(1)NAME
rblcheck - check if an IP address is blacklisted
SYNOPSIS
rblcheck [-qtlcvh?] [-s <service>] <address> [ <address> ... ]
DESCRIPTION
rblcheck is a very basic interface to DNSBL listings such as those operated by The Spamhaus Project or Spamcop.
The general idea behind DNSBL listings is rapid lookup of IP addresses using DNS (for example, for blacklisting IP addresses because of
abuse). Each IP address is reversed and has a domain name attached to it; for example, the IP address 127.0.0.2 would become 2.0.0.127, and
then a domain such as "relays.visi.com" would be added to it. You would then try to resolve the result (ie. 2.0.0.127.relays.visi.com); if
you receive a positive reply, then you know that the address is listed. Further information can also be queried, such as text descriptions
of why the address was listed.
OPTIONS -q Quiet mode; outputs only matching IP address(es) - use return code (see below).
-t Print a TXT record, if any.
-m Stop checking after first address match in any list.
-l List default DNSBL services to check.
-c Clear the current list of DNSBL services.
-s <service>
Toggle service in the DNSBL list.
-h, -? Display the help message.
-v Display version information.
<address>
An IP address to look up; specify `-' to read multiple addresses from standard input.
RETURN CODES
When invoked, rblcheck returns either 0 (to indicate error, or that the address was not in any of the listings), or a positive number
(indicating the number of listings that the IP address was found in).
SEE ALSO
/usr/share/doc/rblcheck/, esp. /usr/share/doc/rblcheck/rblcheck.txt.gz
COPYRIGHT
Copyright (C) 1997, 1998, 1999, 2000, 2001 Edward S. Marshall
Man page created for the Debian Project with the help of help2man(1) based on the output of `rblcheck -h` and the above mentioned text file
by Gregor Herrmann <gregor+debian@comodo.priv.at>.
rblcheck 1.5-20020316 August 2004 RBLCHECK(1)