Displaying 7 results from an estimated 7 matches for "mytemp".
Did you mean:
mktemp
2020 May 31
4
Simple backup of maildir folder
On 29 May 2020, at 23:49, Admin Beckspaced <admin at beckspaced.com> wrote:
> I also have maildir as mailbox format and use the following script to do daily backups
>
> https://github.com/tachtler/dovecot-backup
A couple of notes on this quite useful script:
My mktemp does not support -p (FreeBSD 12.1) is I had to change the script to:
DIR_TEMP=$($MKTEMP_COMMAND -d $TMP_FOLDER
1998 Mar 14
1
Vunerable shell scripts
I made a list of /usr/bin scripts which allows /tmp races. Following
ones creates /tmp/something.$$, then, with no
permission/ownership checking, /tmp/something.$$.x (x may vary
;), or even performs suitable checks, but gives enough time to alter /tmp
contents: glibcbug, bashbug, znew, mailstat, autoupdate, x11perfcomp,
gccmakedep, pnmindex, xcopy, autoheader, cvsbug, rcs2log, updatedb, igawk,
2020 May 31
0
Simple backup of maildir folder
...n my scripts I tend to create a tempdir and then tempfiles within that. It makes the cleanup routine neater, e.g. at the top of my scripts :
TEMP_DIR=$(mktemp -qd || { doLog "Failed to make temp dir !"; exit 1; })
rmTmpFiles() { rm -rf "${TEMP_DIR}"; }
createTempFile() { local MYTEMP=$(mktemp -qp "${TEMP_DIR}" || doLog "Failed to create temp file"; exit 1); echo $MYTEMP; }
Also my backup scripts have locking procedures built-in so as to avoid race conditions.
2020 May 31
1
Simple backup of maildir folder
...to create a tempdir and then tempfiles within that. It makes the cleanup routine neater, e.g. at the top of my scripts :
>
> TEMP_DIR=$(mktemp -qd || { doLog "Failed to make temp dir !"; exit 1; })
> rmTmpFiles() { rm -rf "${TEMP_DIR}"; }
> createTempFile() { local MYTEMP=$(mktemp -qp "${TEMP_DIR}" || doLog "Failed to create temp file"; exit 1); echo $MYTEMP; }
>
I don?t think I need to clean up, and my ?temp_dir? will end up being permanent, as to make doveadm backup snappier I will simply maintain the directory there and use crown jobs to...
2011 Apr 13
1
strategy for writing out file with lines header initiated with comment sign
Dear all,
I have data.frame object in R. I want to export it in tab-delimited
file with several lines of header initiated with comment sign (#). I
do not know how to do that in R. Could you please give helps on this
problem?
Thanks in advance.
Best,
Jian-Feng,
##################################################################
The lines I want to write in the header lines look like, with words
2012 Apr 09
5
Need to split long lines in mail archives
CentOS-6.2
I am investigating how to split long lines present in a
Mailman generated html archives. Mailman places the email
bodies within <pre></pre> tags and some users have MUAs
that send entire paragraphs as one long line.
I have looked at fmt and fold but these assume a pipeline
from stdout to a fixed filename, which presumably is best
done at the time of the original
2004 Aug 27
1
selecting unique columns of a matrix/data frame
...ation that is commonly used
> in certain areas of science (whether it ought to be commonly used is a
> separate question).
>
> While "heatmap" might've been perhaps a better pointer, but it doesn't
> seem to do the "right" thing, either. I.e.
>
> myTemp <- matrix(c(1,2,3,3,2,3),nrow=2)
> heatmap(myTemp,Rowv=NA,Colv=NA)
>
> doesn't look right to me (R Version 1.9.1 (2004-06-21))
>
> I see the "pixmap/bitmap" issue as a bit of a red herring, in this
> case.
>
> best,
> -tony
>
> p.s. I seem to...