Networker

Re: [Networker] capture recover command output

2008-10-29 19:43:37
Subject: Re: [Networker] capture recover command output
From: Will Aymond <Wilbur.Aymond AT SHELL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 29 Oct 2008 17:38:27 -0600
I'm not sure how you implemented this.. Some code would help clear things up..

But if you used perl's open with a pipe for recover, the open command can only 
do either input or output, not both simultaneously.

i.e. as much as we'd like this to work:

$pid = open(HANDLE, "|cmd args|");

it doesn't work as you would hope.

See http://perldoc.perl.org/functions/open.html for further information, there 
are other utilities that do this if that's the behavior you are looking for. 
Although I haven't used it in a long time (usually found another way around 
it), open2 might provide what you are looking for.

Good luck,
Will Aymond

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]On
Behalf Of ess07
Sent: Wednesday, October 29, 2008 6:23 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] capture recover command output


I am working on a perl script to help automate the recover command.
We do full backups of our lotus notes everyday. We hold 2 weeks of daily 
backups and 12 weeks of weekly backups. From time to time, we are required to 
restore every possible backup of someones email. I already wrote the script to 
automate the restores. However, I am trying to capture the output of the 
command line recover command and send it to a file. This way if someone leaves 
a restore going over night they can have a restore report when they come in the 
morning. No matter which way i try to capture the output, I cant seem to get it 
to the file. Does anyone have any kind of insight on this problem. Or has 
anyone even tryed this before? Thanks

+----------------------------------------------------------------------
|This was sent by ess07 AT health.state.ny DOT us via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

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

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