Networker

Re: [Networker] Different Retention per backup levels

2003-04-07 09:26:43
Subject: Re: [Networker] Different Retention per backup levels
From: Davina Treiber <treiber AT HOTPOP DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 7 Apr 2003 09:26:49 -0400
On Mon, 7 Apr 2003 07:22:24 -0600, Stuckless, Colin 709 778-3815
<cstuckless AT PETRO-CANADA DOT CA> wrote:

>
>$SAVEGRP $1
>---
>
>
>My problem is related to a shell 'nuance', as far as I can tell. When
>my savegrp tries to run on the first Friday of the month I get:
>
>savegrp.orig: invalid retention time: "10
>
>Something happens to the arguments when savegrp is kicked off from
>within the script. The "10 years" gets broken up at the whitespace
>between "10" and "years" and savegrp.orig complains about it. I tried
>escaping the quotes and the space with a backslash but that didn't work.
>
>I can add an 'echo' to the end of the script to see what my '$SAVEGRP $1'
>command arguments look like, and from the echo output everything is fine,
>I see:
>
>/usr/sbin/savegrp.orig -y "10 years" -w "1 year" TNA
>
>I can run this from an interactive shell, and everything works fine. From
>nwadmin I see the savegrp starting successfully.
>

Try it using eval, e.g.

eval /usr/sbin/savegrp.orig -y "10 years" -w "1 year" TNA

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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