On 12/17/2013 10:15 PM, David T-G wrote:
You might rewrite this as
if freshclam then echo "freshclam succeeded; moving on" >&2 if clamscan -ri / then echo "clamscan succeeded; moving on" >&2 if updatedb then echo "updatedb succeeded; we're done" >&2 else echo "updatedb exited with a $? status!" >&2 exit $? fi else echo "clamscan exited with a $? status!" >&2 exit $? fi else echo "freshclam exited with a $? status!" >&2 exit $? fi
to verify each step. Season to taste :-)
HTH & Happy Holidays
- thanks all , regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org