Networker

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

2003-01-22 07:27:41
Subject: Re: [Networker] Pre en Post Scripting ; using perl and savepnpc
From: Van Den Abeele Kristof <Kristof.VanDenAbeele AT NBB DOT BE>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 22 Jan 2003 13:27:28 +0100
Davina , Thanks for the reply.

Some notes : 

I have tried it now with 'plain' batch files ; and it works like a charm. 
So I think there were no problems with paths or locked .tmp files.

W: is indeed a network drive , so the problem will be located at this level.
I will look furher in this direction , because perl is the standard scripting 
language at our company ...

P.S. : The previous log files didn't explain much : 
01/22/03 10:23:29 preclntsave: Not all command(s) ran successfully.

Greetz , 

Kristof Van den Abeele

-----Original Message-----
From: Davina Treiber [mailto:treiber AT HOTPOP DOT COM] 
Sent: woensdag 22 januari 2003 11:37
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] Pre en Post Scripting ; using perl and savepnpc

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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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