Hello out there,
Our system has a pdf generator that creates pdf files. We dont need them pas 120 days.
So I have this command in my crontab. I currently set it to "0" for testing. But normally have it set to -mtime 120 to remove files out of the folders from PDF out to several other potential folders out. Nothing ever happens though. Crontab runs. Just this command never seems to happen. Is there something missing?
Last edited by Scott; 05-04-2013 at 10:17 AM..
Reason: Code tags
I'm trying to create a crontab entry that will run the who command once per hour Monday-Friday. Any command output should be appended to the file whoison.log in my home directory.
This is what I wrote:
crontab 0 * * * 1-5 who >> /home/myhome/whoison.log
Did I do this right?
Thanks (7 Replies)
somehow one of my directories got a number of files whose names start with a dash -
e.g. -1129.txt
how can I remove them?
If I issue rm -1129.txt I get the message of illegal options
if I issue rm /-1129.txt I get a message that -1129.txt is not found
Lisa
HP-UX 11.23 i64 (3 Replies)
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Hi,
I've worked out that my server was getting clogged with the access_log.processed file.
I deleted it using the command
> /var/www/vhosts/domain.com/statistics/logs/access_log.processed
I also set that up as a crontab job for every Wednesday.
What I was wondering is the version using... (4 Replies)
I want to find the files and delete all the files except the last file.
I am using find command , I am sending the find output to a file and getting all the lines except the last one and sending it to the remove command . This is not working. can anyone help me out to do it in the find command... (8 Replies)
Dear Friends,
I am working on IBM AIX. I have written one script and kept in the crontab as to run daily at 11:38 AM. and the output of the script to be appended to the file generated with the month name. but my file deleting daily and the new file is creating with the output of the shell... (2 Replies)
Hello Friends,
Im trying to delete empty files in subdirectories with a command. I can find them checking only one directory in each step and then show them with my command like below moreover i could not add removing part:
ls -l */* | awk '{if ($5==0) printf "%3s %2d %s... (5 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
I need to run an script every 10th and 25th day in every month at 11pm.
the script name is /home/ss/automated.sh
I tried to execute the script every day and everytime with the below syntax. its not executing it from crontab.
* * * * * /home/ss/automated.sh
Any idea why it not... (6 Replies)