HP3000-L Archives

April 2000, Week 4

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:
Richard Gambrell <[log in to unmask]>
Reply To:
Richard Gambrell <[log in to unmask]>
Date:
Fri, 28 Apr 2000 21:01:55 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Bruce Conrad wrote:
>
> Q1. there may have been a comment about something like this before: Can !HP
> variables be used in an ftp?
> ex. ftp....  put  filename!hphour.doc
> If not, we'll have to think of a workaround. (a programmer wants the date/time
> in the filename.
>

The way to do this is to "echo" the commands into a temp file and then
run ftp with the temp file redirected as the input.  Like this:

echo                                  > eftp
echo ascii                            >> eftp
echo exitonerror                      >> eftp
echo put mm!eddhhmm  intbrmemo.dat    >> eftp
echo close                            >> eftp
echo bye                              >> eftp
ftp your.host.name              < eftp
if ftplasterr = 0 then
comment <your ftp success commands go here>
endif
--
Richard L Gambrell,
Database Administrator and
Consultant to Computing Services at UTC

  University of Tennessee at Chattanooga
  113 Hunter Hall, Dept. 4454
  615 McCallie Ave., Chattanooga, TN 37403-2598
  voice mail/cell phone: 423-432-5122
  private email: [log in to unmask]
  office fax: 423-755-4025
  office phone: 423-755-4551
  UTC email: [log in to unmask]

ATOM RSS1 RSS2