Jan 1, 2004 #1 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/*
How do i check for crons running everyminute with grep * * * * *? I tried grep *\ *\ *\ *\ * /var/spool/cron/* and grep \*\ \*\ \*\ \*\ \* /var/spool/cron/*
Jan 1, 2004 #2 Salem Programmer Apr 29, 2003 2,455 GB Use fgrep, then you don't have to worry about all those backslashes Code: fgrep '* * * * *' /var/spool/cron/* -- Upvote 0 Downvote
Use fgrep, then you don't have to worry about all those backslashes Code: fgrep '* * * * *' /var/spool/cron/* --
Jan 1, 2004 #3 theotyflos Programmer Oct 15, 2000 132 GR 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. Upvote 0 Downvote
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.