How to find the cronjob entries for all the users


 
Thread Tools Search this Thread
Operating Systems Solaris How to find the cronjob entries for all the users
# 1  
Old 05-22-2008
How to find the cronjob entries for all the users

How to find the cronjob entries for all the users in solaris server.
# 2  
Old 05-22-2008
I do not have access to solaris server , but this is what works on my linux machine...

crontab -u nua7 -l

This would list crontab for user nua7.Get all the users from /etc/passwd and put in a file or a variable and run the above command in a for loop.
# 3  
Old 05-22-2008
just u excute
#crontab -l
# 4  
Old 05-22-2008
If you have root access, cat /var/spool/cron/crontabs/*
# 5  
Old 05-22-2008
Quote:
Originally Posted by mr_crosby
If you have root access, cat /var/spool/cron/crontabs/*
This is correct. Any user that has a crontab file will have an entry in this directory. To see which users have a crontab run:
Code:
ls -al /var/spool/cron/crontabs

Then if you want to see what is in the users crontab you would:
Code:
cat /var/spool/cron/crontab/username

Tornado
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find users in 24 hour

How can I find that time when maximum number of users were login in last 24 hours. We have 500 users in that server. ---------- Post updated at 02:13 PM ---------- Previous update was at 01:17 PM ---------- on particular date 26-march-2013. Just for example we want to trace in which timings... (5 Replies)
Discussion started by: learnbash
5 Replies

2. UNIX for Advanced & Expert Users

Need to find the user id of all users in UNIX

I need to find all the unix user id's of all the users in unix... is there any such command... pl help out (6 Replies)
Discussion started by: Syed Imran
6 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Using w; how to list find all the users

Hi, On my system, I have about 75 users. Some uers have two or three sessions on the same systems. when I do w, it shows all the sessions. Is there any way to find only the users and not worry about how many sessions. For example: you can see sshe has four connection. I only want to know... (5 Replies)
Discussion started by: samnyc
5 Replies

4. Shell Programming and Scripting

Using grep with 'who' to find online users

solved (3 Replies)
Discussion started by: subway69
3 Replies

5. Homework & Coursework Questions

Find out the System users

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I want to create a file called Allusers that contains the list of currently logged on users and the total number... (2 Replies)
Discussion started by: ahm2008
2 Replies

6. UNIX for Dummies Questions & Answers

how to cancel a cronjob if the cronjob still running

hi everyone I'm newbie in this forum hope I can get some help here :) I have a command in crontab that executed every 1 minute sometime this command need more than 1 minute to finish the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Discussion started by: 2j4h
7 Replies

7. AIX

Find all users with shell access

Hi, how do I find all users currently setup with shell access. Thanks in advance. Gav (1 Reply)
Discussion started by: LionFeen
1 Replies

8. Shell Programming and Scripting

to find the number of users logged in

Hi, can u say to display the number of users that logged before me. thanks (10 Replies)
Discussion started by: shanshine
10 Replies

9. UNIX for Dummies Questions & Answers

Find users using system(List them only once)

Hey, got a few questions here for anyone who can help...... Command line to - display users using the system, but count them only once. Command line to - use the lastcomm command to display how many times ive used grep in october. Command line to - list all logged on users with at least 6... (3 Replies)
Discussion started by: xBuRnTx
3 Replies

10. Shell Programming and Scripting

How to find users in a network

How to find users in a network? I used who. But i want to to find users using cox internet to connect to a server. PLease help (1 Reply)
Discussion started by: subbarao83
1 Replies
Login or Register to Ask a Question