Solved

How to display current jobs in crontab

Posted on 2011-09-13
6
380 Views
Last Modified: 2012-08-13
Hi,

I wonder how can I see all the currents jobs on my server. I planned serveral cron jobs but not sure if they are actually executated.


WHAT IS THE COMMAND TO SEE THE CURRENT JOBS
0
Comment
Question by:cismoney
  • 3
  • 2
6 Comments
 
LVL 12

Expert Comment

by:mwochnick
ID: 36530676
crontab -l  to view the current file
0
 
LVL 12

Assisted Solution

by:mwochnick
mwochnick earned 500 total points
ID: 36530683
here's a nice quick reference
http://adminschoice.com/crontab-quick-reference
0
 
LVL 12

Accepted Solution

by:
mwochnick earned 500 total points
ID: 36530708
one additonal thing to view any users crontab - you have to be root to do this
crontab -l username
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:cismoney
ID: 36530788
thanx a lot.


how do you execute a script via crontab can you give me an example???

My collegue executated a script to show all the daily logs, everytime he execute that script with the crontab the file is created but remain empty.


when he execute the same  script manually he can see the file with all the content.
0
 
LVL 5

Expert Comment

by:balasundaram_s
ID: 36531012
There should a cron log, where you can see whether those jobs are executed or not.  What OS ?
0
 

Author Comment

by:cismoney
ID: 36531059
solaris
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now