HP3000-L Archives

June 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Wonsil <[log in to unmask]>
Reply To:
Date:
Tue, 20 Jun 2000 16:49:51 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (56 lines)
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.")

ATOM RSS1 RSS2