Glenn,
I thought the "here document" would be a useful technique for creating FTP's
on the fly, but this is what I get:
shell/iX> /SYS/ARPA/FTP <<end
> open 192.64.123.200
> user supervisor
> pass ****
> ls
> quit
> end
FILE OPEN ERROR (PASCERR 692)
FILE IS '$STDINX'
ABORT: FTP.ARPA.SYS
NM SYS a.00a9f288 dbg_abort_trace+$24
NM PUB 281.0011ba34 P__PASCFERROR+$3e0
NM PROG 318.00022010 u_open_in_out+$a4
[1] + Done(134) /SYS/ARPA/FTP <<end
open 192.64.123.200
user supervisor
pass ****
ls
quit
end
8782039 Abort /SYS/ARPA/FTP
IIRC, could this be the same file redirect problem that Pascal has w/CGI?
Mark Wonsil
4M Enterprises, Inc.
-----Original Message-----
...
A much easier technique is:
#!/bin/sh
cat <<end
Content-type: text/html
<html>
<head>
[snip]
</html>
end
callci...
Note that the use of the word 'end' is arbitrary. Choose
what you wish, but use the same string in both the 'cat'
command and at the end of what is to be written.
(This technique is called a "here document.")