Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
Hi there,
I have a wapper script which passes the argument from command prompt to inner script.. It works fine as long as the argument containing single word. But when value contains multiple word with space, not working as expected. I tried my best, couldn't find the reason. Gurus, pls.... (2 Replies)
Hi,
I have 2 ksh scripts.
Script1.ksh contains function definition.
script1.ksh
function f1() {
while getopts a:c: args
do
case $args in
a) ARG1=$OPTARG ;;
c) ARG2=$OPTARG ;;
\?) echo "Error no valid Arguments passed"
esac
done
echo $ARG1
echo $ARG2
script2.sh (2 Replies)
Hi,
I am using curl to hit a url using http in solaris 10 using commandline, I want to transfer an attachment(using multipart curl -F) also as a part of the request. If anyone has used kindly help me with the syntax. I am using below command:
/usr/local/bin/curl -v... (1 Reply)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
as you probably/may know, one can open any application from the
application folder with the command
open -a program_name
I found that out today and so I created aliases in .bash_profile and
they work.
alias safari="open -a safari"
alias gimp="open -a gimp"
alias seamonkey="open -a... (0 Replies)
Hi All,
I am running the script
VBoxManage list vms |sed 's/"//g' | cut -d " " -f1 > har1out.mytxt
result=`cat har1out.mytxt | grep $1'
echo $result
echo $1
{
if
then
echo pass
else
echo fail
fi (2 Replies)
mymk target
How to check is on commandline or no?
Cannot to find out ;(
Know that I need to use if.....new in shell sorry
Please use code tags next time for your code and data. (2 Replies)
Discussion started by: Manueldo
2 Replies
LEARN ABOUT DEBIAN
dspam_clean
dspam_clean(1) DSPAM dspam_clean(1)NAME
dspam_clean - perform periodic maintenance of metadata
SYNOPSIS
dspam_clean [--profile=PROFILE] [-s[signature_life]] [-p[probability_life]] [-u[sl,hcl,shl,ihl]] [user1 user2 ... userN]
DESCRIPTION
dspam_clean is used to perform periodic housecleaning on DSPAM's metadata dictionary by deleting old or useless data.
OPTIONS --profile=PROFILE
Specify a storage profile from dspam.conf. The storage profile selected will be used for all database connectivity. See dspam.conf
for more information.
-s Performs stale signature purging. If a value is specified, the default value of 14 days will be overridden. Specifying an age of 0
will delete all signatures from the user(s) processed.
-p Deletes all tokens from the target user(s) database whose probability is between 0.35 and 0.65 (fairly neutral, useless data). If a
value is specified, the default life of 30 days will be overridden. It's a good idea to use this flag once with a life of 0 days for
users after a significant amount of corpus training.
-u Deletes all unused tokens from a user's dataset. Four different life values are used:
sl Stale tokens which have not been used for a long period of time
hcl Tokens with a total hit count below 5 (which will be assigned a hapaxial value by DSPAM)
shl Tokens witha single spam hit
ihl Tokens with a single innocent hit
Ages may be overridden by specifying a format string, such as -u30,15,10,10 where each number represents the respective life. Speci-
fying a life of zero will delete all unused tokens in the category.
user1 user2 ... userN
Specify the username(s) to perform the selected maintenance operations on. If no username is specified, all users are processed.
EXIT VALUE
0 Operation was successful.
other Operation resulted in an error.
COPYRIGHT
Copyright (C) 2002-2011 DSPAM Project
All rights reserved.
For more information, see http://dspam.sourceforge.net.
SEE ALSO dspam(1), dspam_admin(1), dspam_crc(1), dspam_dump(1), dspam_logrotate(1), dspam_merge(1), dspam_stats(1), dspam_train(1)DSPAM Apr 17, 2010 dspam_clean(1)