BLACK FRIDAY DEALS

Knowledge Base

Allows you to search a variety of questions and answers

Search

Search results

General Server Questions

How can I see what crons each user has running?

07-08-2011, 09:01 AM

You would have to run this as root, but:
 

Code:

   for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

will loop over each user name listing out their crontab. The crontabs are owned by the respective users so you won't be able to see another user's crontab w/o being them or root.

--[edit] if you want to know, which user does a crontab belong to insert echo $user
 

Code:

   for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

Source: http://stackoverflow.com/questions/1...-for-all-users

See What Our Customers Say

Leave review
J

Jose E

ON, Canada

I very seldom contact support, but if I do, the response is always prompt and issues are always res...

Read full review
J

James

FL, United States

I have been using AYK for about 2 years now and they are always on top of any issues I have. They ha...

Read full review
J

Jesse

ON, Canada

- always respond fast - excellent pricing - great products

Read full review
B

Brad

We're Happy with our 1 Gigabit Server AYK Solutions! AYK Solutions provides all our back-end server...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft