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
K

kkodev

London, United Kingdom

After getting a dedicated server from AYK for almost 2 years, I couldn't be more happy. The prices...

Read full review
M

Miles S

WA, United States

I had never heard of AYK Solutions before, but they had an awesome deal I couldn't pass up on WHT....

Read full review
H

holidaypropertyrental.com

England, United Kingdom

I have a two small shared hosting packages and the price I pay I don't expect to receive very good s...

Read full review
E

Ephi

QC, Canada

Great prices and service! Truly is painless, professional and polite (That's their slogan).

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft