One of the best ways I've found to interact with a command like recover
is to use expect, look for expectperl on sourceforge. It lets you send
commands and process the output as if you are an interactive user.
-----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
NOTICE
This e-mail and any attachments are confidential and may contain copyright
material of Macquarie Group Limited or third parties. If you are not the
intended recipient of this email you should not read, print, re-transmit, store
or act in reliance on this e-mail or any attachments, and should destroy all
copies of them. Macquarie Group Limited does not guarantee the integrity of any
emails or any attached files. The views or opinions expressed are the author's
own and may not reflect the views or opinions of Macquarie Group Limited.
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
|