ADSM-L

Re: redirecting output

2001-04-20 11:02:32
Subject: Re: redirecting output
From: "Cook, Dwight E" <cookde AT BP DOT COM>
Date: Fri, 20 Apr 2001 09:57:54 -0500
Here is something I learned with the client under aix when running into
redirect problems...
Within a ksh script, to get dsmc to NOT treat the ">" as part of the
parameters I had to stick an "eval" at the front of my line... when the
interpreter interpreted the line, it broke off all my redirect stuff
properly and all was OK then.

eval nohup dsmc retrieve
/export/data2/oracle/oratccda/ewks_aats02_oratccda.dbf
/d102/oracle/ORATCCDA/ewks_aats02_oratccda.dbf -serv=houdsm02-hosd207f
-replace=yes -fromdate=08/21/1999 -pass=xxxx >2.files.out 2>&1 &
so inside your script you are doing something like
so inside your script you are doing something like
#!/bin/ksh
...
dsmadmc -id=blah -pass=xxx query drmedia .....    > some_file
...
exit

try making the line
eval dsmadmc -id=blah -pass=xxx query drmedia .....    > some_file


Dwight





<Prev in Thread] Current Thread [Next in Thread>