<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all!<br><br>i'm just did a script that the output must be comma separated to be imported into a spreadsheet.<br><br>the output that i obteined was <br><br>Date/Time,We. Active Threads,W. Total Threads,W. Worker Threads,Name<br>29-12-10/11:43:01,0,250,0,/FIM<br>,0,/mytest<br>,0,/mockofprod/financing/customercentre<br>,0,/mockofprod/financing/commercial/amt<br>,0,/account/orderstatus<br>,0,/activities<br><br>as you can see, the first row it's ok, but the second and third, etc etc, are not formated. any ideas of how can i achive this?<br><br>NOTE: the first three values are simple commands that i put in order, the fourth and fifth are from a file.<br><br>this is part of the code.<br><br><br>printf "%s,%d,%d" $DATE $WSAT $WSTT >> output.${STANZA}.txt<br><br>for i in `cat jlist.${STANZA}.txt`<br>do<br>  JUNCTION=${i}<br>  WSWJ=`pdadmin -a
 sec_master -p ${PASSWD} server task ${STANZA} show ${JUNCTION} | grep 'threads' | awk '{ print $4 }'`<br>  printf ",%d,%s\n" ${WSWJ} ${JUNCTION} >> output.${STANZA}.txt<br>done<br><br><br>----------------------------------<br>
Alejandro Rodriguez Luna<br>
Movil: 044-311-112-86-41<br>
----------------------------------</td></tr></table><br>