Article View: alt.privacy.anon-server
Article #270954Re: hermetix.org needing electro-shock therapy
From: Nomen Nescio
Date: Sun, 09 Nov 2014 00:25
Date: Sun, 09 Nov 2014 00:25
30 lines
1598 bytes
1598 bytes
> #!/bin/bash > # mixcheck.sh > # Script to see if mixmaster is running > # > #test if mixmaster running > cat "Mixmaster not running!" | mail -s "Mixmaster not running!" > you@youremail.net > fi > #test if mixmaster hung > cat "Mixmaster - no new pool messages after 60 minutes - > mixmaster hung?" | mail -s "Mixmaster - no new pool messages - > mixmaster hung?" you@youremail.net > fi > exit 0 >I don't think the [[]] test works and it uses cat where it means echo. The double [] may not be necesary, but just do this to see that it does: if [[ ! $(ps -ef) =~ "./mixmaster -D" ]]; then echo "mixmaster not found" else echo "mixmaster found" fi cat will give you the message also in an email.
Technical Details
Message-ID:
<6f0ec61cd3d08e1fcba2ff3b74d1247c@dizum.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141209.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!sewer!news.dizum.net!not-for-mailReferences:
<slrnm5tad1.blj.elvis-85503@notatla.org.uk>Show Full Headers
Complete Article Headers
Message-ID: <6f0ec61cd3d08e1fcba2ff3b74d1247c@dizum.com> Subject: Re: hermetix.org needing electro-shock therapy Date: Sun, 09 Nov 2014 00:25:02 +0000 From: Nomen Nescio <nobody@dizum.com> References: <slrnm5tad1.blj.elvis-85503@notatla.org.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141209.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!sewer!news.dizum.net!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 29