On Wed, May 12, 2010 at 1:47 PM, Shakthi Kannan
> \--
>
> Try the following in the <command> section of an /etc/crontab entry?
>
>  pgrep mplayer || shutdown -hP now
>

Shakthi,

I think this a lot.

I normally use && like

$ make && make test && make install

Of course for make install you gotta be root if it uses the normal prefix
during ./configure.

I digress. Sorry.

The or operator || is really cool.

But I would not put it in crontab. If the machine switches off doing imp
work and listening to music there is a problem.

I want to run the script manually.

Thanks for this tip.

Very useful.

-Girish


-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to