Re: Cron Daemon backup message too big
- From: Haines Brown <brownh@xxxxxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 17:04:53 -0400
Someone kindly communicated to me privately, and I realized that I was
not being sufficiently complete regarding my problem.
In my backup script, I have the line:
find / -print | egrep -v "^/media|... " 2>&1 | cat -vt
What this command does is to concatenate stdout + errors and redirect
them to a terminal. This works fine when I call the command # backup.
However, when cron calls it, there's no terminal to which to send the
stdout, and so apparently it is redirected by default to a mail
message.
Could I avoid this by terminating the command line instead like this:
2>&1 /home/brownh/backup.log | cat -vt
Here I clobber the contents of backup.log, which is what I want. Is the
syntax right? Will it avoid sending stdout to a mail message?
My guess is that when I upgraded to etch, cron stdout was redirected by
default to a mail message. That's OK, except in this case it causes
exim4 to complain about the size of the message and terminate the find
command.
--
Haines Brown, KB1GRM
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: Cron Daemon backup message too big
- From: Owen Townend
- Re: Cron Daemon backup message too big
- References:
- Cron Daemon backup message too big
- From: Haines Brown
- Re: Cron Daemon backup message too big
- From: Andrei Popescu
- Re: Cron Daemon backup message too big
- From: Haines Brown
- Cron Daemon backup message too big
- Prev by Date: Re: Cron Daemon backup message too big
- Next by Date: Re: how to use promise fastTrak 378 with IDE disks?
- Previous by thread: Re: Cron Daemon backup message too big
- Next by thread: Re: Cron Daemon backup message too big
- Index(es):
Relevant Pages
- Re: Cron Daemon backup message too big
... What this command does is to concatenate stdout + errors and redirect ...
Could I avoid this by terminating the command line instead like this: ... though you need
a redirect to the file too like so: ... (Debian-User) - Re: Can you duplicate Standard Output WITHOUT tee command?
... run where he wanted to catch stdout. ... Yes, this is a difficult command
pipe, especially as written it uses ... The last file descriptor operations restore
the normal meaning of stdin ... (comp.unix.shell) - Re: Howto parse stdout without changing it
... > I would like to parse stdout from a command list but also piped stdout
to ... I guess you are looking for `tee`. ... echo "gzip result: $" ...
(comp.unix.shell) - Re: STDOUT and STDERR redirection fails for forked process
... Simply, fork a command using the OPEN instruction, ... redirect STDERR
to STDOUT and capture the returncode of the executed ... and the returncode is not
captured. ... (comp.lang.perl.misc) - Re: getting stdout and stderr for system calls on windows
... It doesn't separate stderr and stdout, but for what I want it, it's more than
enough. ... #You can then access the output and the return value for the command. ...
def initialize cmd ... (comp.lang.ruby)