What have you tried with redirection? I think you might get it working with something like this:-
Using $$ in the filename appends the PID, so fairly random to avoid overwriting.
You could choose a fixed log file and append to it by using >> $logfile or you could use a date/timestamp like one of these:-
Some of the date flags might be OS dependant though.
I am trying to check to see if a file exists on a ftp server, well, I know that cant be done, atleast directly, So I came up with this small script
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd public_html/crap
dir $FILE
quit
END_SCRIPT
Where the $ variable... (2 Replies)
Hi,
I am currently working on a FTP script which would ftp to extranet servers from intranet server and gather logs based on timestamps in archive logs and by using a wildcard character in the present logs. I have the following in place
AAA="Extranet Server 1:Instance Extranet Server... (2 Replies)
i have this basic line of code that doesn't work. i simply want to get the input parameter strings but when the script is run it appears that the first parameter is assigning the value to the second parameter.
#!/bin/sh
pdir=`pwd`
p1=$1
p2=$2
echo "directory: $pdir\n"
echo "parameter... (2 Replies)
Hi,
I have a script which does multiple tasks in sequence. When i execute the script, it runs and displays lot of messages for each of the steps on the console. Is there any way I can capture those messages and store it for audit purposes ?
Best Regards,
bornon2303 (2 Replies)
Hi Guys,
I am trying to capture the FTP Logs in a log file.
I am using the below code.
ftp -d -n -v $Remote_Host << EOD > $Ftp_LOG;
Since iam running the script in debug mode, i am able to see that the ftp is done and the file has been transferred.
But the log file does not have... (7 Replies)
Hi,
I have been trying to capture console logs from the init script.
When the ramfs is mounted, i check if usb is connected , if conncted, i mount it and redirected the console logs like so:
cat & /dev/ttyS1 >> /mnt/logs.txt
I'm getting
/bin/sh : /dev/ttyS1 :permission denied
... (8 Replies)
I have two set of questions.
1) To skip killing some process automatically.
2) To kill other process and capture their log.
I have set of process, some needs to be killed gracefully and others should be skipped.
Listed are the process.
adm 1522... (1 Reply)
Hello All,
I am writing a shell script which will run on build server where multiple users can login.These users can run this script at the same time.
I want to capture the name of the user who ran the script for every instance.How can I do that ?
Regards,... (1 Reply)
Hi Guys, I'm very new to Shell scripting and have to design a code which I'm not able to find a way to. I will try to explain the aim in detail and shall be obliged if anyone could help me with the coding snippet.
I have an input file who's every row has a few details about an autosys Job. I shall... (0 Replies)
Hi Guys, I'm very new to Shell scripting and have to design a code which I'm not able to find a way to. I will try to explain the aim in detail and shall be obliged if anyone could help me with the coding snippet.
I have an input file who's every row has a few details about an autosys Job. I shall... (1 Reply)
Discussion started by: Crusnik02
1 Replies
LEARN ABOUT DEBIAN
dspam_logrotate
dspam_logrotate(1) DSPAM dspam_logrotate(1)NAME
dspam_logrotate - Rotate DSPAM logfiles
SYNOPSIS
dspam_logrotate -a age [-v] [[-l [logfile]]|[-d [dir]]]
DESCRIPTION
dspam_logrotate can be used to rotate DSPAM system log and/or the user logs.
OPTIONS -a age All log entries older than 'age' days will be removed.
-v Print verbose output.
-l logfile
A list of one or more files to process.
-d dir The home directory of DSPAM or the root path where user logs are located.
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_clean(1), dspam_crc(1), dspam_dump(1), dspam_merge(1), dspam_stats(1), dspam_train(1)DSPAM Apr 17, 2010 dspam_logrotate(1)