17 Dec
2013
17 Dec
'13
20:50
On 12/17/2013 10:28 PM, David C. Rankin wrote:
On 12/17/2013 01:31 PM, ellanios82 wrote:
freshclam && clamscan -ri / && updatedb Means
if freshclam; then if clamscan -ri /; then updatedb fi fi
If either freshclam or clamscan exit with a *nonzero* exit code, updatedb will not be run.
I suspect 'clamscan -ri /' rarely, if ever, exits with a 0 exit code. If you want it all on one line, why not:
freshclam && { clamscan -ri /; updatedb; }
That will do
if freshclam; then clamscan -ri / updatedb fi __________________
- many thanks regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org