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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing shell variable

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
I having a brain fart right now !

I can not seem to come up with a working answer.

This is what I have

I have a function within a script called sendoc.
Basically it processes output from our ERP system, formats the output then passes it to vsifax for faxing.

Here is the code.
***********************************************************
if [ -s $TMPFILE ]
then

npgs=`sendoc | /usr/vsifax/bin/pcout`
sendoc | /usr/vsifax/bin/vfx -n $FAXNUM -s -d fax1

fi

rm $TMPFILE

************************************************************

I want to add another function.

cp sendoc /tmp/notes

I can not seem to get it working



-Danny






 
if [ -s $TMPFILE ]
then

npgs=`sendoc | /usr/vsifax/bin/pcout`
sendoc | tee /tmp/notes | /usr/vsifax/bin/vfx -n $FAXNUM -s -d fax1

fi

rm $TMPFILE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top