01-04-2013
awesome.
---------- Post updated at 12:51 PM ---------- Previous update was at 12:47 PM ----------
Just out of curiosity, why didnt you want to use scanf ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
First off I usually script in the bash shell.
Ok, in my script I am checking to see if the filename has a .txt extension.
So I was trying:
if
then
echo "Must contain a valid .txt extension"
fiandif ]
then
echo "Must contain a valid .txt extension"
fiBut no go the first... (5 Replies)
Discussion started by: Astudent
5 Replies
2. UNIX for Dummies Questions & Answers
Correct me if i'm wrong, but by adding "#!/bin/ksh" at the start of a script will force it to run in the korn shell no matter which shell you are currently using?? (2 Replies)
Discussion started by: shad0w75
2 Replies
3. Shell Programming and Scripting
I'm using solaris and i have an old script that an ex employee wrote but i can't seem to get it working. well is just one part of the script
if ($?MC_PROD_DIR == 0) setenv MC_PROD_DIR $HOME/PRODUCTION
source $MC_PROD_DIR/scripts/localenv
** i understand what this part of the script is... (1 Reply)
Discussion started by: fusionjd
1 Replies
4. UNIX for Dummies Questions & Answers
Can anyone help with these scripts? Im new to this and struggling. Thank you for your help.
Pre-requisites
Create a file with x amount of lines in it, the content of your choice. (Have already done this)
Script 1
Write a script that takes two arguments. The first being a line of text,... (3 Replies)
Discussion started by: beginner1
3 Replies
5. Shell Programming and Scripting
Anyone know why this won't work?
#!/usr/bin/ksh
for db in `cat /etc/oratab|egrep ':N|:Y' | grep -v \* | cut -f1 -d":"`
do
echo "************************"
echo "database is $db"
echo "************************"
done
I am getting an error on the line... (7 Replies)
Discussion started by: ace2000
7 Replies
6. Shell Programming and Scripting
Here is my problem.
I have a txt file with a list of user names in both upper case and lower case. I need to remove the names from the passwd file. I want to be able to run a script that looks at my txt list and then removes those names from the passwd file. It would be nice if it backed up the... (3 Replies)
Discussion started by: wgartin
3 Replies
7. Shell Programming and Scripting
I am trying to write a script to check the STIG our unix boxes. I want to put in checks to determine if certain files or directories are there. For example:
If /opt/SUNWexplo exists
echo "Sun Explorer exists"
else
echo "Sun Explorer is not installed"
I am sure I could write... (2 Replies)
Discussion started by: rkruck
2 Replies
8. UNIX for Dummies Questions & Answers
I have a script that will calculate some information about the current directory that I run the script in. How can I have it where it gets an argument from the user(such as a directory) and the script calculate the information for the given directory? Any help is greatly appreciated. (8 Replies)
Discussion started by: tr32
8 Replies
9. Shell Programming and Scripting
How can I include a counter in this if statement so only sends out 5 notifications.
# the if statement will check for the lines status, if status is down sends email
if
then
LIST="user@email.com"
mail -s "rje_lines_down" $LIST < ${tmpfile} #sends an email to list
fi
thanks... (2 Replies)
Discussion started by: d4n3lu
2 Replies
10. Shell Programming and Scripting
I know some tricks like this : echo " E"; sleep 0.1; clear;
echo " Er"; sleep 0.1; clear;
echo " Err"; sleep 0.1; clear;
echo " Erro"; sleep 0.1; clear;
echo " Error ";... (2 Replies)
Discussion started by: hakermania
2 Replies
LEARN ABOUT CENTOS
mail::spamassassin::plugin::autolearnthreshold
Mail::SpamAssassin::Plugin::AutoLearnThreshold(3) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::AutoLearnThreshold(3)
NAME
Mail::SpamAssassin::Plugin::AutoLearnThreshold - threshold-based discriminator for Bayes auto-learning
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
DESCRIPTION
This plugin implements the threshold-based auto-learning discriminator for SpamAssassin's Bayes subsystem. Auto-learning is a mechanism
whereby high-scoring mails (or low-scoring mails, for non-spam) are fed into its learning systems without user intervention, during
scanning.
Note that certain tests are ignored when determining whether a message should be trained upon:
o rules with tflags set to 'learn' (the Bayesian rules)
o rules with tflags set to 'userconf' (user configuration)
o rules with tflags set to 'noautolearn'
Also note that auto-learning occurs using scores from either scoreset 0 or 1, depending on what scoreset is used during message check. It
is likely that the message check and auto-learn scores will be different.
USER OPTIONS
The following configuration settings are used to control auto-learning:
bayes_auto_learn_threshold_nonspam n.nn (default: 0.1)
The score threshold below which a mail has to score, to be fed into SpamAssassin's learning systems automatically as a non-spam
message.
bayes_auto_learn_threshold_spam n.nn (default: 12.0)
The score threshold above which a mail has to score, to be fed into SpamAssassin's learning systems automatically as a spam message.
Note: SpamAssassin requires at least 3 points from the header, and 3 points from the body to auto-learn as spam. Therefore, the
minimum working value for this option is 6.
bayes_auto_learn_on_error (0 | 1) (default: 0)
With "bayes_auto_learn_on_error" off, autolearning will be performed even if bayes classifier already agrees with the new
classification (i.e. yielded BAYES_00 for what we are now trying to teach it as ham, or yielded BAYES_99 for spam). This is a
traditional setting, the default was chosen to retain backwards compatibility.
With "bayes_auto_learn_on_error" turned on, autolearning will be performed only when a bayes classifier had a different opinion from
what the autolearner is now trying to teach it (i.e. it made an error in judgement). This strategy may or may not produce better future
classifications, but usually works very well, while also preventing unnecessary overlearning and slows down database growth.
perl v5.16.3 2011-06-06 Mail::SpamAssassin::Plugin::AutoLearnThreshold(3)