[Bug 561568] (amavisd noisy?) sa-update.cron generating errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=561568

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppisar@xxxxxxxxxx

--- Comment #23 from Petr Pisar <ppisar@xxxxxxxxxx> ---
(In reply to comment #22)
> I recently migrated a server from RHEL4 to RHEL6 an now have a problem when
> I restart the amavisd inside a script via a cronjob. The output should be
> redirected to (a variable and then to) a file but it isn't:
> 
> /etc/init.d/amavisd restart 2>&1>> $TEXT
> 
This means to redirect error output to descriptor of original standard output
and append standard output to a file.

You have to reverse the redirects >>$TEXT 2>&1. See bash(1). Also you can write
&>>$TEXT.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=CJgQCKJNDR&a=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux