Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KSH script on Tru64 Unix V5.1B 1

Status
Not open for further replies.

johnfm00

Technical User
Dec 1, 2003
12
AU
hi,
I have a simple ksh script that has 3 functions, each one calls vdump to dump a fileset.

I added tee -a to capture output from the execution of the functions, vdump displays output to the screen, but doesn't write to my defined variable $SAVED_LIST



{
echo "\n\n[ $(basename $0) - $(date) ] \n"

get_vdump_usr

get_vdump_var

get_vdump_root


} | tee -a $SAVE_LIST




Can anyone suggest anything to fix this ?

 
I think that vdump displays informations on stderr instead of stdout.

Try to add redirection of stderr to stdout :

{
. . .
} 2>&1 | tee -a $SAVE_LIST

Jean Pierre.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top