Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to display current jobs in crontab

Posted on 2011-09-13
6
393 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

829 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