Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i check for crons running everyminute with grep *****?

Status
Not open for further replies.

owenbrown

MIS
May 22, 2003
32
US
How do i check for crons running everyminute with grep * * * * *?

I tried
grep *\ *\ *\ *\ * /var/spool/cron/*
and
grep \*\ \*\ \*\ \*\ \* /var/spool/cron/*
 
Use fgrep, then you don't have to worry about all those backslashes
Code:
fgrep '* * * * *' /var/spool/cron/*

--
 
try putting the expression in double quotes to protect from shell:
Code:
grep "\* *\* *\* *\* *" /var/spool/cron/*

There are only 10 kinds of people: Those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top