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]