On 01.01.2014 20:57, Suvayu Ali wrote:

> Now my questions:
> 
> 1. How can I filter messages printed to the logs from my cron jobs?  I
>    will try to explain by example:
> 
>      $ journalctl -ru crond --since=-3d
>      -- Logs begin at Sun 2013-11-17 02:48:46 CET, end at Wed 2014-01-01 
> 20:31:27 CET. --

# journalctl -u crond.service

Do it as root, and add .service suffix to crond.

Bash completion is your friend here, hitting TAB twice after -u option
will give you units that are recognized.

journalctl is user-aware and show only what's appropriate.



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to