home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
wvwar062.zip
/
doc
/
x
/
helper-scripts
/
nswordview
< prev
next >
Wrap
Text File
|
2000-09-20
|
548b
|
29 lines
#!/bin/tcsh
if ($#argv != 1) then
echo "Usage: $0 file.doc"
exit 1
endif
set source = $argv[1]
#Generate a unique html filename (/tmp/scriptname.pidnum.html)
set com = $0
set temp = /tmp/$com:t.$$
set html = $temp.html
(wvWare $source) >! $html
if ((!(-s $html)) | ($status)) then
echo "$0: failed to generate HTML file"
exit 1
endif
#File exists and is of length > 0, so open it
nsopen $html
#I do NOT remove the html file so that the user
#can click on the "Back" button without generating
#a "file not found" error
exit 0