Thanks for all the replies. It looks like the '-outfile' option is the one that will work....
Thanks, Ben -----Original Message----- From: Frost, Dave [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 4:43 AM To: [EMAIL PROTECTED] Subject: Re: Script problems try adding the parameter "-outfile" to the dsmc command. From unix.. dsmadmc -id=xx -pa=yy -outfile -tab select volume_name from volumes \ where devclass_name like \'3590DEV\' regards, -=Dave=- -- +44 (0)20 7608 7140 A Bugless Program is an Abstract Theoretical Concept. -----Original Message----- From: Seay, Paul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 2:20 AM To: [EMAIL PROTECTED] Subject: Re: Script problems I do not know why yours stopped working, but this will work: dsmadmc -id=## -pass=## "select volume_name from volumes where devclass_name like '3590DEV' " |cat Paul D. Seay, Jr. Technical Specialist Naptheon Inc. 757-688-8180 -----Original Message----- From: bbullock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 7:28 PM To: [EMAIL PROTECTED] Subject: Script problems Folks, Just today, I upgraded from TSM 4.1 to TSM 5.1 This is an AIX host running 4.3.3 ML 10. Everything went smoothly. It even rebuilt the new "path" configurations for the tapes and drives by itself. I didn't have the "cleanup backupset" issue because this TSM server only backs up some VMS clusters, so I had no "SYSTEM OBJECTS". I most likely will not be so lucky in 2 weeks when I have to upgrade some TSM servers that backup NT hosts) I've only encountered 1 problem this far: I gather some stats off of the TSM server with various scripts. When I run these scripts, I typically put a "</dev/null" on the end, otherwise it gets to the first "(<ENTER> to continue, 'C' to cancel)" prompt and just sits there. As a simple example: dsmadmc -id=## -pass=## "select volume_name from volumes where devclass_name like '3590DEV' " </dev/null (to get a listing of tape numbers of a certain device class). This has always worked in the past but now that I'm at 5.1, it gets to the first "(<ENTER> to continue, 'C' to cancel)" prompt and then perpetually spews: ... The character '#' stands for any decimal integer.The only valid responses are characters from this set: [Enter, C] The character '#' stands for any decimal integer.The only valid responses are characters from this set: [Enter, C] The character '#' stands for any decimal integer.The only valid responses are characters from this set: [Enter, C] ... It seems to dislike the "</dev/null" very much. Anybody seen this? Is there a better way to do this? I'm guessing there is, otherwise it would be in the archives. Something like a "-youdonthavetohittheenterkey" option. Somebody enlighten me. ;-) Thanks, Ben ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________