Displaying 20 results from an estimated 24 matches for "mmin".
Did you mean:
min
2009 Mar 10
4
rm user:group
I want to remove files but only if they are owned by a certain user and group.
Basically I have this:
find /var/spool/greylist -mmin +363 -exec rm -f {} \;
I want to make sure it only deletes files owned by mail. Basically no
matter what weird characters are in the file names I want to make sure
it does not delete anything outside of /var/spool/greylist. I can add
'sudo -u' to it but then my secure log gets filled wit...
2006 Mar 20
5
Numbered Voicemails even with delete option!
...proved!
*******************************************************
[root@centos INBOX]# more /etc/asterisk/voicemail-clean
cd /var/spool/asterisk/voicemail/default/1234/INBOX
#Only move files that are not currently in use that are over 3 bytes
find /var/spool/asterisk/voicemail/default/1234/INBOX -mmin +1 -and
-size +3c -exec cp {}
/tmp \;
#replace contents of these files with 0 to save space
#find /tmp -name 'msg*.*' -and -type f -exec echo 0 >{} \;
for i in /tmp/msg*.gsm
do
echo 0 >$i
done
for i in /tmp/msg*.txt
do
echo 0 >$i
done
if [ -f /tmp/msg\*.txt ]
then
rm -f...
2015 Feb 12
7
Cronjob and sudo
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
#!/bin/sh
cd /var/list
sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {} \;
I want to run it as matt rather than root for just an added bit of
safety. Problem is I get this.
"sudo: sorry, you must have a tty to run sudo"
Is there another way to do this? As I understand the reason for this
is requiretty in sudo config. I...
2012 Feb 08
2
dropterm in MANOVA for MLM objects
Dear R fans,
I have got a difficult sounding problem.
For fitting a linear model using continuous response and then for re-fitting the model after excluding every single variable, the following functions can be used.
library(MASS)
model = lm(perf ~ syct + mmin + mmax + cach + chmin + chmax, data = cpus)
dropterm(model, test = "F")
But I am not sure whether any similar functions is available in R for multivariate data with categorical response.
My data looks like the following:
mat <- matrix(rnorm(700), ncol=5, dimnames=list( paste("...
2005 Apr 11
0
correlation range estimates with nlme::gls
...rted AIC values suggest that the models with
autocorrelation *are* preferable, by quite a bit -- I could pursue this
further.) Or should I just not worry about it and move on?
Ben Bolker
--------------------------
simulation code:
library(MASS)
simdata <- function(sd=200,range=2,n=NULL,mmin=0) {
if (is.null(n)) mile <- seq(mmin,17.5,by=0.5) else {
mile <- seq(mmin,17.5,length=n)
}
mean <- 3000-50*(mile-10)^2
v <- sd^2
dist <- abs(outer(mile,mile,"-"))
Sigma <- v*exp(-dist/range)
X <- mvrnorm(1,mu=mean,Sigma=Sigma)
data.frame(...
2008 Jan 29
2
sa learning from an imap spam folder
Hello,
I am sorry if I am writing to a wrong list because honestly I do not
know where to write but I would like to be able to set up sa-learn via
cron to learn from spam folder of a particular email account (via
IMAP).
Can anyone share how to do it? Is dovecot involved in it?
I am using:
Exim 4.69
Dovecot 1.0.10
p5-Mail-SpamAssassin-3.2.1
Thanks a lot for helping.
Zbigniew Szalbot
2000 Apr 04
0
Obscure bug....?
...ion(path, files, quiet=F, ...)
{
filearr <- list.files(path, files, full.names=T)
if(! quiet)
{
print(noquote("Files found:"))
print(noquote(filearr))
}
tmp <- summarymap(filearr[1], ...)
h <- tmp$histogram
sm <- tmp$mapmean
sv <- tmp$mapvar
mmin <- tmp$mapmin
mmax <- tmp$mapmax
seed <- tmp$mapseed
nfiles <- length(filearr)
for (i in 2:nfiles) # Supposedly, reduced efficiency by using a for
{ # loop is neglible compared to file access time.
print(c(test=9,hb=length(h$breaks), hc=length(h$counts))...
2000 Jun 15
2
tree error message
Dear R user,
I used from the library MASS the dataset cpus and the skript
plot.tree.sequence.R, which are included in the tree package:
>library(MASS)
> data(cpus)
> cpus.ltr <- tree(log10(perf) ~ syct + mmin + mmax + cach
>+ + chmin + chmax, data=cpus)
At home it works but at work I get this message:
>Error in .C("BDRgrow1", as.double(X), as.double(unclass(Y)),
as.double(w), : C/Fortran function name not in load table
I do not understand this message and I would be very glad if...
2008 Jun 09
4
Copying files from specific date.
Dear all,
Does anyone aware of any utility to copy files which are created or modify form a specific date ?.
Thanks
Rajeev R. Veedu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080609/ae761b2c/attachment-0002.html>
2010 May 24
1
--delete and --files-from
...of using the trailing slash but it seems to have no effect.
Does anyone know if -delete can work with -files-from?
Here's the code:
DIR="/mnt/backup/machine/oracle"
FILES=".test_files.files"
RDEST="10.0.150.52::machine-backup"
find $DIR/lvl1 -maxdepth 1 -type f -mmin +30| /usr/bin/awk -F/ '{print $8"/"$9}' > /tmp/$FILES;
rsync -ptrgoz --stats --delete --files-from=/tmp/$FILES $DIR/ $RDEST/
As I mentioned above I have tried all combinations of $DIR/ $DIR $RDEST/ $RDEST
The rsyncd.conf on the other end:
[machine-backup]
path = /mnt/backup/...
2008 Feb 28
5
Wine broke my WindowsXP (can't login)
...partition as read-write (which, in hindsight, I shound't have done!) and all went fine...
But, now I can't seem to logon into Windows. It boots up to the login window, but when I actually log into my account, all it shows is the wallpaper.
I ran
Code:
find /c -daystart -type f -mtime 1 -mmin -$((2*24*60-14*60-28)) -mmin +$((2*24*60-14*60-32))
to see what has changed on the C: partition when I ran Wine (which I've narrowed down to the time shown, namely yesterday between 14:28 and 14:32), and it came up with about 1000 files in c:/windows/system32 ...
Has anyone else experienced...
2011 Jan 05
0
Nnet and AIC: selection of a parsimonious parameterisation
...0, 151,
152, 154, 156, 157, 158, 159, 160, 161, 163, 166, 167, 169, 170, 173,
174, 175, 176, 177, 183, 184, 187, 188, 189, 194, 195, 196, 197, 198,
199, 202, 204, 205, 206, 208, 209)
cpus2 <- cpus[, 2:8] # excludes names, authors? predictions
attach(cpus2)
cpus3 <- data.frame(syct = syct-2, mmin = mmin-3, mmax = mmax-4,
cach=cach/256,chmin=chmin/100, chmax=chmax/100, perf)
detach()
CVnn.cpus <- function(formula, data = cpus3[cpus.samp, ], maxSize = 10,
decayRange = c(0,0.2), nreps = 5, nifold = 10, alpha= 9/10,
linout = TRUE, skip = TRUE, maxit = 1000,...){
#nreps=number of...
2001 Jul 20
4
plotting dendrograms
Hello,
Can anyone offer any insight on graphing classification dendrograms with
the nodes marked?
plot(tree()) produces a nice tree structure but there's no acccompanying
text.
Thanks,
D
S. David White
sdavidwhite at bigfoot.com
Columbus, Ohio
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2015 Feb 12
0
Cronjob and sudo
On Thu, February 12, 2015 12:32 pm, Matt wrote:
> I need to remove empty files out of a directory that are over 6 hours
> old so I created this script and put it in cron.hourly.
>
> #!/bin/sh
> cd /var/list
> sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {} \;
>
> I want to run it as matt rather than root for just an added bit of
> safety. Problem is I get this.
>
> "sudo: sorry, you must have a tty to run sudo"
>
> Is there another way to do this? As I understand the reason for this...
2006 Jan 16
0
Methods for clearing page caches?
Here''s what I use, in a crontab entry:
*/30 * * * * find
/var/www/html/rails/public/categories/ -mmin +60 -exec
rm {} \;
I''d also like to remove empty directories, which are
easy enough to find with the ''-empty'' param, but rmdir
trips on non-empty parent directories which it finds
before children, and I''m not sure if I want to use ''rm
-r''. What...
2009 Jan 07
2
1.6
Is it ready for prime time? I am about to install a new server that will
be processing about 3M minutes per month and running a custom AGI program
for prepaid calling cards. Need to choose between 1.4x and 1.6...
Cheers,
j
2007 Nov 12
1
how to know when files have finished ftping? -- antair restored
...t; Is there a way to tell when a file has finished
> uploading?
>
> I am using the vsftpd daemon installed using yum.
>
> Thanks,
> Neil
Wow, all quite involved answers.
You may be able to get the list of files to process using 'find'. If
you check using "-mmin +X", you might be able to get only files that
haven't been updated in X minutes. That should filter out anything in
progress. If a transfer is stopped in the middle, then restarted
later, that wouldn't help here.
It's possible that the FTP daemon might not update this informatio...
2011 May 12
1
Printing to pdf file (no cups-pdf)
I use an application that should produce a .pdf (and in fact it does, in Windows). Unfortunately I've got no way to see that file. The printing process apparently starts, and the pdf-file option is accepted, but no file is produced at all (searched with find -mmin). The pdf-cups alternative also proves ineffective.
My guess is that the current wine installation lacks some library, which is used to produce the pdf file. Apparently people with Acrobat Professional installed are successful in printing to pdf, but the alternative is quite expensive.
Any help,...
2007 Nov 11
4
How to know when files have finished FTPing?
Hello:
I have a server set up a CentOS 5 server for a client
to push files onto using FTP.
I have a cron job to process the files and
move them to another directory.
Sometimes, the cron job executes while the client
is still uploading a file (Some of them can be large)
and I get a partial file.
Is there a way to tell when a file has finished
uploading?
I am using the vsftpd daemon installed
2011 May 04
4
Finding wich files a writen to
Hi !
I have a server (Centos 5) that is using a pair of SAS drives to store the
data. (Mail server) They are on an adaptec raid controler with a battery
backup and write back cache active.
>From time to time, I have sever peak io to those data disks (> 400 to 500
iops, > 70 to 100 megs/sec).
With iostat, I find that it's almost a write i/o problem. How can I find to
which files