10-06-2001
I had thought of deleting all the files older than a week. But, Netscape (mail server) creates some control files (e.g. __GENNAME__, __lock__, etc.) in the Trash directory of users. If removed users won't be able to see the Folders at client end (and raise hell on me!
). I could look into your script and tell it not to delete the files starting with "__".
Thanks a lot though.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What utility (or combination of utilities) can I use to find out how much disk space a directory and its subdirectories take up.
I currently am using 'df' to see partition space/size,
'ls' doesn't seem like displaying directory info
TIA
SmartJuniorUnix (2 Replies)
Discussion started by: SmartJuniorUnix
2 Replies
2. Shell Programming and Scripting
Is there some command I can use to check to see if there is 2 Gig of space available in a directory before I created a 2 Gig file? (3 Replies)
Discussion started by: lesstjm
3 Replies
3. Filesystems, Disks and Memory
Can someone tell me how I can determine how much space (blocks) have been used by a given directory tree?
I periodically need to know how much space is consumed by a directory and all of its files and subdirectories and their files in either KB or blocks. I have tried df and du but these do not... (1 Reply)
Discussion started by: johnk99
1 Replies
4. UNIX for Dummies Questions & Answers
I know very basic Unix commands s I would really appreacite the assistance of a Unix guru.
I am installing an application on a Sun server, when attempting to install I get an error that says I do not have enough sapce allocated for my install directory. Error says it has 7235m but needs 15360m.... (2 Replies)
Discussion started by: rhack
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
How can I check whether a directory has enough space to create file? I have checked the space is availabe in the file system.
For example: the directory /var/tmp resides in root file system. In the root file system currently 20% (5.5gb) space availabe. but how can I check the in the /var/tmp,... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
6. Red Hat
We applied updates on saturday and noted that we have used 97% of our /boot directory. How can I tell what files i can keep or get rid of in this directory? or how can I increase the size of this partition.
Red Hat Enterprise Linux ES release 3 (Taroon Update 9)
2.4.21-57.ELsmp
Thank... (4 Replies)
Discussion started by: redac
4 Replies
7. Shell Programming and Scripting
Hi Guys,
I want to find the free space of a particular directory,,
Regards,
Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies
8. UNIX for Dummies Questions & Answers
I need to add space to certain directory. I believe I need to add space to the filesystem this directory belongs to. How can I find out what filesystem this directory belongs to? (3 Replies)
Discussion started by: NycUnxer
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
Discussion started by: govindts
3 Replies
10. Shell Programming and Scripting
I have two servers in subject, say server1 and server2. I have shell scripts on server1. We have a directory on server2 from where the files need to be scp to server1.
The directory on server2 is having space in its name.
I have script on server1 that takes the directory path of server2 as a... (4 Replies)
Discussion started by: Longfellow
4 Replies
FAXCRON(8C) FAXCRON(8C)
NAME
faxcron - HylaFAX routine maintenance script
SYNOPSIS
/usr/sbin/faxcron [ -n ] [ -l lastrun ]
DESCRIPTION
faxcron is a command script that does routine upkeep tasks in a HylaFAX spooling directory hierarchy. This script is intended to be
invoked from cron(8C) on behalf of the fax user (often the ``fax'' user is uucp) once a day, with the standard output sent by mail to the
HylaFAX administrator. For example, the following crontab might be set up for the fax user:
25 23 * * * sh /usr/sbin/faxcron | mail FaxMaster
The faxcron script does the following work:
o report statistics for facsimile transmitted since the last time faxcron was run.
o report statistics for facsimile transmitted in the past week.
o report statistics for facsimile received since the last time faxcron was run.
o report statistics for facsimile received in the past week.
o report any recent calls that failed suspiciously and return the associated trace log;
o purge data that is 30 days or older from the remote machine information directory;
o delete information that is 30 days or older from session trace log files;
o remove files from the tmp directory that are older than 1 day;
o remove files in the received facsimile queue that are 7 days or older;
o report sites that are currently having jobs rejected; and
o force all session log files to be owned by the fax user and kept with protection mode 644.
OPTIONS
-n Forces faxcron to run without updating any files.
-l lastrun
Forces the notion of the last time that faxcron was run to be lastrun. The value of lastrun is a date and time string of the
form ``MM/DD/YY HH:MM'' (the date(1) format string ``%D %H:%M'').
-info n Set the expiration time for data in the info database to be n days.
-log n Set the expiration time for session log data to be n days.
-rcv n Set the expiration time for files in the received facsimile queue to be n days.
-tmp n Set the expiration time for files in the tmp directory to be n days.
-mode m Set the file protection mode for session logs to m (a command line argument to chmod(1)).
NOTES
This script requires nawk(1) or gawk(1) and a date(1) program that supports the ``+format'' option.
If session logs are to be kept private this script must be modified to filter out sensitive information such as calling card numbers. (It
should also be run with ``-mode 0600'' so that session log files are not publicly readable.)
FILES
/var/spool/fax spooling area
/var/spool/fax/etc/lastrun timestamp of last run
/usr/sbin/xferfaxstats for generating transmit statistics
/usr/sbin/recvstats for generating receive statistics
/var/spool/fax/tmp/faxcronXXXX temporary file for truncating session logs
/var/spool/fax/tmp/faxlogXXXX temporary file for logs of failed calls
SEE ALSO
cron(8C), faxq(8C), faxgetty(8C), faxsend(8C), xferfaxstats(8C), recvstats(8C), hylafax-server(5F)
May 12, 1996 FAXCRON(8C)