Re: [Networker] Scripting NSRADMIN
2009-01-13 12:37:14
I think you must use the '-i' option with an input file that contains
the commands you want to feed to nsradmin.
Put the command lines into a separate text file (say input.txt), and
capture the output:
nsradmin -i input.txt > output.txt
See if that gets you want you want..
> -----Original Message-----
> From: EMC NetWorker discussion
> [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of Dias,
> Kent (Contractor)
> Sent: Tuesday, January 13, 2009 11:33 AM
> To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> Subject: [Networker] Scripting NSRADMIN
>
> We're running Networker 7.4.2 on Windows 2003 Server.
>
> I'm trying to script the following:
>
> NSRADMIN
> show name;scheduled backup
> print type: NSR client;scheduled backup: disabled
>
> The problem is that when using a batch file or CMD file to do
> this, the script won't pass the next commands into NSRADMIN
> since NSRADMIN is an executable that works more like a shell.
>
> Any ideas on how I can automate / script this?
>
> Thanks,
> Kent
>
> Kent Dias
> Windows System Administrator
> IBM Integrated Technology Delivery / Server System Ops for
> Philip Morris USA, Altria robert.k.dias.contractor AT altria 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
|
|
|