Could you put this into cron? Or create a bash script for this? That
might be easier.
#!/usr/bin/bash
/$PATH/TO/pqact -vl - -q /dev/null pathname
and then add it into your crontab?
cron -e
*/5 * * * * root /$PATH/TO/pqact -vl - -q /dev/null pathname>>
/var/log/pqact/pqact.log 2>&1; fi
which would have it run every 5 minutes (obviously overkill, but edit
it to what you'd like)
And you could even do some neat stuff with emailing the results
then
/usr/bin/echo " $i is not working!"|/usr/bin/mailx -s "$i appears to
be down!" your@xxxxxxxxxxxxxxxxx
I dunno, maybe I'm off track and need a smack.
Either way, I hope my bash-foo points you in the right direction.
-Eric
On 8/28/07, Gerry Creager <gerry.creager@xxxxxxxx> wrote:
> Steve Emmerson wrote:
> > Hi Gilbert,
> >
> > Is it insufficient, inconvenient, or just hard to remember to execute
> > the command
> >
> > pqact -vl - -q /dev/null pathname
> >
> > when you modify file "pathname"?
>
> Hard to remember. I have resorted to the LDM equivalent of the 3-finger
> salute: "ldmadmin restart" most of the time. My fingers remember that
> even if I don't.
>
> > I could modify the file "ldmadmin-pl.conf" to create a variable that
> > contained the pathnames of all the "pqact" configuration-files. The
> > components of this variable could then be checked by the "ldmadmin
> > pqactcheck" command. The problem is that there is no guarantee that the
> > variable will contain all the files.
> >
> > I think a better solution would be for the ldmadmin script to extract
> > the pathnames of the "pqact" configuration-files from the LDM
> > configuration-file. I'll think about it.
>
> Personally, I think your better solution is a better solution. Consider
> this encouragement.
>
> How was the bagpipe contest?
>
> gerry
>
> > Gilbert Sebenste wrote:
> >> Hello all,
> >>
> >> You know how you can do an ldmadmin pqactHUP and it re-reads all the pqact
> >> files that are active? Well...
> >>
> >> Can we do an ldmadmin pqactcheck do the same thing? It would make life
> >> easier for those running multiple pqact files, like me...
> >>
> >> *******************************************************************************
> >> Gilbert Sebenste
> >> ********
> >> (My opinions only!) ******
> >> Staff Meteorologist, Northern Illinois University ****
> >> E-mail: sebenste@xxxxxxxxxxxxxxxxxxxxx ***
> >> web: http://weather.admin.niu.edu **
> >> *******************************************************************************
> >> _______________________________________________
> >> ldm-users mailing list
> >> ldm-users@xxxxxxxxxxxxxxxx
> >> For list information or to unsubscribe, visit:
> >> http://www.unidata.ucar.edu/mailing_lists/
> > _______________________________________________
> > ldm-users mailing list
> > ldm-users@xxxxxxxxxxxxxxxx
> > For list information or to unsubscribe, visit:
> > http://www.unidata.ucar.edu/mailing_lists/
>
> --
> Gerry Creager -- gerry.creager@xxxxxxxx
> Texas Mesonet -- AATLT, Texas A&M University
> Cell: 979.229.5301 Office: 979.862.3982 FAX: 979.862.3983
> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>
> _______________________________________________
> ldm-users mailing list
> ldm-users@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
--
Eric Whitehill - ewhitehill@xxxxxxxxx
"I've got a jar of dirt! I've got a jar of diirrrt!"
- Captain Jack Sparrow