Networker

Re: [Networker] Automated tasks using batch files

2006-05-04 10:29:58
Subject: Re: [Networker] Automated tasks using batch files
From: "McKnight, Scott (USPC.PRG.Atlanta)" <Scott_McKnight AT PRINCETONRG DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 4 May 2006 10:23:42 -0400
Provided the program provides DOS error levels, you can use an if
statement to generate an error message like so.

If ERRORLEVEL <value> <action>

This can be used to generate an entry to a file like this

If ERRORLEVEL 1 goto ABORT


ABORT:
Echo "Process failed">> error.txt
exit

R. Scott McKnight
-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of Vince Howard
Sent: Thursday, May 04, 2006 9:04 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] Automated tasks using batch files

Dear List,
 
We are moving from UNIX platform to Windoze 2000 (bad idea I know, this
has been forced on me) and I'm trying to translate my Korn shell scripts
into DOS batch files - these inventory, label, mount/unmount tapes, etc.
One problem (of many) is finding out the ERRORLEVEL set by commands such
as nsrjb.  Does anybody have any batch files they'd care to share with
me or can someone point me in the direction of a resource that covers
this issue?
 
 
Best Regards,
 
Vince
 

Vince Howard
Programmer/UNIX System Administrator
IT Section
Wansbeck District Council
Front Street West
Bedlington
Northumberland
NE22 5TU
UK
 
Tel (DDI): +44 (0)1670 843472
Fax:       +44 (0)1670 843484
e-mail:    v.howard AT wansbeck.gov DOT uk
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.  If you have received this e-mail in error please
notify the originator of the message.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Wansbeck District Council.

This footer also confirms that this e-mail message has been scanned
for the presence of computer viruses.

Wansbeck District Council Web Site is: www.wansbeck.gov.uk


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

Princeton Retirement Group, Inc - Important Terms 
This E-mail is not intended for distribution to, or use by, any person or 
entity in any location where such distribution or use would be contrary to law 
or regulation, or which would subject Princeton Retirement Group, Inc. or any 
affiliate to any registration requirement within such location. 
This E-mail may contain privileged or confidential information or may otherwise 
be protected by work product immunity or other legal rules. No confidentiality 
or privilege is waived or lost by any mistransmission. Access, copying or 
re-use of information by non-intended or non-authorized recipients is 
prohibited. If you are not an intended recipient of this E-mail, please notify 
the sender, delete it and do not read, act upon, print, disclose, copy, retain 
or redistribute any portion of this E-mail. 
The transmission and content of this E-mail cannot be guaranteed to be secure 
or error-free. Therefore, we cannot represent that the information in this 
E-mail is complete, accurate, uncorrupted, timely or free of viruses, and 
Princeton Retirement Group, Inc. cannot accept any liability for E-mails that 
have been altered in the course of delivery. Princeton Retirement Group, Inc. 
reserves the right to monitor, review and retain all electronic communications, 
including E-mail, traveling through its networks and systems (subject to and in 
accordance with local laws). If any of your details are incorrect or if you no 
longer wish to receive mailings such as this by E-mail please contact the 
sender by reply E-mail. 

--------------------------------------------------------

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