Could have been lost when copy/pasting the script. Compare above error message to this:
If you now imagine a <CR> after the ".gz", you'll have exactly the line posted.
Hi,
Following is my shell script.
#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;
In this "cd" is not working and not getting any error.
my shell is "tcsh"... (3 Replies)
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Hi All,
FTP ports opens with the given user name and password and allows to download file through COMMAND PROMPT. Code as below:
H:\>ftp ftpxxxxx
Connected to entvc2ft07-pub.xxxxx.com.
220 Microsoft FTP Service
User (entvc2ft07-pub.xxxxx.com:(none)): userxxxxx
331 User name okay, need... (1 Reply)
Hello,
I work on Windows and I use Putty to access a remote UNIX server.
I am trying to build a shell script that will have as main task to open the
Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Hi,
I am a bit confused ,why would a sed command work fine outside of ksh script but not inside.
e.g
I want to replace all the characters which end with a value and have space at end of it.
so my command for it is :
sed -i "s/$SEPARATOR /$SEPARATOR/g" file_name
This is working fine in... (8 Replies)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
dspam_maintenance
dspam_maintenance(1) User Commands dspam_maintenance(1)NAME
dspam_maintenance - remove old signatures and unimportant tokens from the DSPAM storage backend
SYNOPSIS
dspam_maintenance [--profile=PROFILE] [--logdays=no_of_days] [--signatures=no_of_days] [--neutral=no_of_days] [--unused=no_of_days]
[--hapaxes=no_of_days] [--hits1s=no_of_days] [--hits1i=no_of_days] [--without-sql-purge] [--with-sql-automatization] [--with-sql-autoup-
date] [--purgescriptdir=directory] [--with-all-drivers] [--verbose]
DESCRIPTION
dspam_maintenance is used to remove old signatures/tokens and unimportant tokens from the DSPAM storage backend and purge old log entries
in user and system logs.
This script can be called from the command line or run from within cron. Either add a line in your crontab or add this script in your
cron.{hourly,daily,weekly,monthly}. Running this script every hour might not be the best idea but it's your decision if you want to do so.
OPTIONS --profile=PROFILE
Specify a storage profile from dspam.conf. The storage profile selected will be used for all database connectivity.
NOTE: See dspam.conf for more information.
--logdays=no_of_days
All log entries older than no_of_days days will be removed.
NOTE: Default is 31 days. (for more info: man dspam_logrotate)
--signatures=no_of_days
All signatures older than no_of_daysdays will be removed.
NOTE: Default value is set by the PurgeSignatures option in dspam.conf, if this option is not set, the default value is 14 days.
This option is only used for the Hash driver.
--neutral=no_of_days
Deletes all tokens from the target users database whose probability is between 0.35 and 0.65 (fairly neutral, useless data).
NOTE: Default value is set by the PurgeNeutral option in dspam.conf, if this option is not set, the default value is 90 days.
--unused=no_of_days
Remove stale tokens which have not been used for a long period of time.
NOTE: Default value is set by the PurgeUnused option in dspam.conf, if this option is not set, the default value is 90 days.
--hapaxes=no_of_days
Remove tokens with a total hit count below 5 (which will be assigned a hapaxial value by DSPAM).
NOTE: Default value is set by the PurgeHapaxes option in dspam.conf, if this option is not set, the default value is 30 days.
--hits1s=no_of_days
Remove tokens with a single SPAM hit.
NOTE: Default value is set by the PurgeHits1S option in dspam.conf, if this option is not set, the default value is 15 days.
--hits1i=no_of_days
Remove tokens with a single INNOCENT hit.
NOTE: Default value is set by the PurgeHits1I option in dspam.conf, if this option is not set, the default value is 15 days.
--without-sql-purge
Do not use SQL based purging. Only run dspam_clean.
NOTE: Default is off (aka: use SQL based purging).
--with-sql-optimization
Run VACUUM (for PostgreSQL/SQLite) and/or OPTIMIZE (for MySQL).
NOTE: Default is off (aka: do not use optimizations).
--with-sql-autoupdate
Run SQL based purging with purge day values passed to dspam_maintenance.
NOTE: Default is off (aka: do not attempt to modify SQL instructions).
--purgescriptdir=directory
Space separated list of directories where to search for SQL files used for the SQL based purging.
--with-all-drivers
Process all installed storage drivers (not just the active driver).
NOTE: Default is true (aka: process all installed drivers).
--verbose
Verbose output while running maintenance script.
EXIT VALUE
0 Operation was successful.
other Operation resulted in an error. Run the script with --verbose to get more information about error.
COPYRIGHT
Copyright (C) 2002-2010 DSPAM Project
All rights reserved.
For more information, see http://dspam.sourceforge.net.
SEE ALSO dspam(1), dspam_admin(1), dspam_clean(1), dspam_crc(1), dspam_dump(1), dspam_logrotate(1), dspam_merge(1), dspam_stats(1), dspam_train(1)dspam_maintenance Apr 26, 2010 dspam_maintenance(1)