search for: touchfil

Displaying 7 results from an estimated 7 matches for "touchfil".

Did you mean: touchfile
2005 Jul 26
1
last access file for 1.0-stable?
Hi, I am almost ready to convert from UW-imap to dovecot 1.0 stable for my imap use. I hacked UW-imap to touch a file in the user's home directory so I can always tell the last time they used imap. My hack looks something like this: if(authenticated) { touchfile = (char *) malloc((strlen (home) + 15); sprintf(touchfile,"%s/.imapd.last",homedir); fd = open(touchfile,O_WRONLY|O_CREAT|O_TRUNC,0600); if(fd < 0) syslog (LOG_NOTICE|LOG_AUTH,"touchfile failed for %s:%s",user,strerror(errno)); else...
2008 Jul 14
4
Execute some steps if a file isn't present
Hi all, I''ve come quite far with my puppet setup, but a few times I got this problem: I want to execute a few things if a file isn''t present on the puppet client. For example: I want puppet to check if the mod_passenger apache module exists. If not: installl passenger from gem. Execute the installer, copy the config file and enable the module with a2enmod. What would be the
2004 Apr 03
1
rsync is slowing down
The cause is, of course, that the tree being syncronized ie getting larger, so of course rsync is slowing down. But in the case of my particular file tree, there is a way it could be speeded up, but this would obviously also need a change in the rsync protocol to accomplish it. Any tree that has major unchanged subbranches would benefit from this. The file tree I'm syncronizing in this case
2002 Oct 21
4
Any work-around for very large number of files yet?
Yes, I've read the FAQ, just hoping for a boon... I'm in the process of relocating a large amount of data from one nfs server to another (Network Appliance filers). The process I've been using is to nfs mount both source and destination to a server (solaris8) and simply use rsync -a /source/ /dest . It works great except for the few that have > 10 million files. On these I get
2008 Feb 27
2
Unix-like touch to update modification timestamp of file?
Hi, is it possible to update the modification time stamp of a file using R (on file systems supporting it)? It is sufficient to update the modification time to the current time. The best I can do for now is: touchFile <- function(pathname, ...) { if (!file.exists(pathname)) stop("No such file: ", pathname); info <- file.info(pathname); if (info$isdir) stop("Cannot change the timestamp of a directory: ", pathname); oldTimestamp <- info$mtime; con <- NULL; on...
2011 Feb 17
1
Nested defined resources
...", $packages) { include python::package_dir $virtualenv = $title case $ensure { present: { file { # create the virtualenv directory "$virtualenv": ensure => directory; } $touchfile = "$virtualenv/.ve-setup" exec { "virtualenv $virtualenv": logoutput => on_failure, name => "$python $package_dir/virtualenv.py \ --python=$python --distribute $virtualenv...
2002 Oct 22
0
pruning old files
...jip.co.jp> wrote: > +------ > | > | jw> In the past i found that using find was quite good for this. > | jw> Use touch to create a file with a mod_time just before you > | jw> started the last sync. Then from inside $src run > | jw> find . -newer $touchfile -print|cpio -pdm $dest > | > | For pruning, how about to add the feature to rsync. > | Is it difficult ? > | > | --exclude-older=SECONDs > | exclude files older than SECONDs before > | --ignore-older=SECONDs > |...