1
I have a script which need to be run as cron job.
In the staging environment i could run the script as a cronjob. but in the production environment it is not working,
so i checked whether cron daemon is running on the production
ps -ax|grep cron
but this command gives me following error message.
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
4120 ? Ss 0:06 crond
13640 pts/6 S+ 0:00 grep cron
could anybody explain me what is wrong with this command
This confusion arises because GNU/Linux combines two different Unix traditions for the ps command syntax - BSD and SVR.
ps -ef
also works fine under Linux. – RedGrittyBrick – 2012-05-16T09:10:57.387