Networker

Re: [Networker] "savepnpc" Stop a group from running command line help

2007-10-03 12:31:14
Subject: Re: [Networker] "savepnpc" Stop a group from running command line help
From: A Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 3 Oct 2007 16:25:18 +0000
On Wed, Oct 03, 2007 at 12:00:26PM -0400, Campbell, Heather wrote:
> All,
>           I am looking for some info on how to stop a backup group at a
> certain time each day. I'm looking for the proper syntax/coding for
> savepnpc, so I can use the "stop now" function along with a timeout
> setting to stop a group, if running, at 8AM each weekday.  

Why savepnpc?  That would be somewhat appropriate for stopping a
particular backup, or performing certain tasks after the backup
finishes, but not if you just want to stop a group every day.

If you want to do it at the same time of day every day, I'd probably
just use cron and do something like:

printf "type:nsr group;name: mygroup\nupdate stop now:True\n" | nsradmin -i -

and run that every day.  This will only stop the group if it's fired
directly by the nsr system (scheduler, 'start' button, or nsradmin
request), but not if it was launched directly via 'nsrgrp'.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>