Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

View all CRON jobs

  • 13-03-2007 11:49am
    #1
    Closed Accounts Posts: 25,848 ✭✭✭✭


    Hi guys,

    Is there a way as root to view all cron jobs that are set up to run for all users on Fedora?

    I know you can crontab -l -u "username" for each individual user as root, but I'm trying to track down a rouge process and I've no idea what user it is being started under

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 568 ✭✭✭phil


    All cronjobs should be logged to /var/log/cron with the user it is run as (so you have a historical reference)

    I think FC5 uses vixie-cron, so you should have a list of current active cronjobs in /var/spool/cron

    e.g.
    $ sudo ls /var/spool/cron/
    phil  root
    $
    

    That's a cronjob file for my user 'phil' and the 'root' user on my system. They're plain text files, so use less/more/cat or your favourite editor to view them. Obviously, try not to modify the files and use crontab(1) to do that.

    Explain to us a bit more about the rogue process and we might be able to help you track it down.

    Phil.


  • Registered Users, Registered Users 2 Posts: 5,112 ✭✭✭Blowfish


    Wicknight wrote:
    Hi guys,

    Is there a way as root to view all cron jobs that are set up to run for all users on Fedora?

    I know you can crontab -l -u "username" for each individual user as root, but I'm trying to track down a rouge process and I've no idea what user it is being started under

    Thanks
    it would probably be easier to do this using

    ps aux | grep "process name"


  • Registered Users, Registered Users 2 Posts: 545 ✭✭✭ravydavygravy


    as root, run the following:

    cat /var/spool/cron/* /etc/cron.d/* /etc/crontab

    to list all currently set cronjobs.

    Alternativly, if you need to see what each user has setup, try this:

    for USER in `cat /etc/passwd | grep sh | awk -F: '{print $1}'`
    do
    echo "Crontab for $USER:"
    crontab -u $USER -l
    echo
    done

    Hope this helps....


Advertisement