Networker

Re: [Networker] Pre en Post Scripting ; using perl and savepnpc

2003-01-22 05:36:36
Subject: Re: [Networker] Pre en Post Scripting ; using perl and savepnpc
From: Davina Treiber <treiber AT HOTPOP DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 22 Jan 2003 05:36:48 -0500
On Wed, 22 Jan 2003 11:04:15 +0100, Van Den Abeele Kristof
<Kristof.VanDenAbeele AT NBB DOT BE> wrote:

>I am using the "savepnpc" parameter in the "Backup Command" attribute to
perform pre and post scripting on a client.
>
>This client is a Windows machine.
>
>The correct file "groupname.res" has been automatically created in the
"C:\program files\nsr\res" directory.
>
>I want to modify this file to run 2  perl scripts , but no succes so far.
>
>For example :
>
>type: savepnpc;
>precmd: "W:\\perl\\bin\\perl C:\\backup\\pre.pl";
>pstcmd: "W:\\perl\\bin\\perl C:\\backup\\post.pl";
>#timeout: "12:00:00";
>
>I have tried many other things : without double backslashes ,  without perl
location , ...
>Anybody has done this before ? What is going wrong here ?
>

You haven't really explained what it does or doesn't do.

A few suggestions:

Double backslashes are good. Full pathnames are good.

Your W: drive - is it a local disk or filesystem? High letters like this are
often network shares - if so it won't work since the user running the
NetWorker service won't be logged in with a mapped drive.

What is in the savepnpc.log file on the client? (This file will be in
...Program Files\nsr\logs) This might give you clues about what is happening.

Finally, the old chestnut - check for a leftover <GROUP>.tmp file in
...\nsr\tmp. This may need removing to make pre and post commands work. More
info in the FAQ.

HTH.

--
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>