HP3000-L Archives

May 2000, Week 1

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:
Reply To:
Date:
Tue, 2 May 2000 00:15:13 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (90 lines)
Here is a command file that you can use to
ftp a filename with an hpvar appended to the name. You must have
MPEX in order to do this!!

In this example this command file is called ftptest.cmd:

********************************
comment command to ftp a file with !hphour appended to name

setjcw INSIDEMPEX=0
IF INSIDEMPEX = 1 THEN
    echo  open < system name >            >  ftpin
    echo  user  uname upassword           >> ftpin
    echo  put abc!hphour                  >> ftpin
    echo  quit                            >> ftpin

    ftp      < ftpin
else
  echo  ftptest.cmd > ftptest1
  mpex < ftptest1
endif
********************************

Steve Zink
[log in to unmask]
==========================================================
In article
<[log in to unmask]>,
  Donna Garverick <[log in to unmask]> wrote:
> 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.
>
> currently no. (although something crawling around in my brain makes
me think
> there's an open sr for this???)  the 'standard' recommendation is to
build a file
> (typically 'echo blah >> ftpin') just prior to doing the ftp, then
using said file
> as stdin to ftp (ie, ftp.arpa.sys < ftpin).  one question....how
critical is the
> accuracy of !hphour?  that is, if this 'building the file' process is
occuring at
> ##:59 and ftp doesn't get invoked until ##+1:00, is that ok?
(probably, but it's
> worth considering....)
>
> > Q2. I'm not that familiar with HOWMESSY, but I do know the format
that it
> > expects, for a database.
> > But I can't get it to work. I want to run it for the CCC databases
> > (Maestro/SpoolMate) and it gave me this:
> > (logged on as MGR.CCC)
> > MOZART.MAESTRO
> >  Error-1: Unable to open database in mode 5 or mode 6
> >
> >  TURBOIMAGE RESULT AT $00000000: RETURN STATUS = -21
> >  DBOPEN, MODE 6 ON MOZART.MAESTRO; PASSWORD = "<NULL>"
> >  BAD PASSWORD - GRANTS ACCESS TO NOTHING
> >  HEX DUMP OF STATUS ARRAY FOLLOWS:
> >  FFEB 2020 2020 2020 0000 0191 4184 6308 0006 0000
>
> i doubt there's anything 'magic' about the databases you're trying to
look at.  i
> suspect it has to do with the mode that they were originally opened
with....or (now
> that i'm reading the error more carefully....) are you sure you gave
howmessy the
> correct password?  (remember image passwords are case-
sensitive)                  -
> d
>
> --
> Donna Garverick     Sr. System Programmer
> 925-210-6631        [log in to unmask]
>
> >>>MY opinions, not Longs Drug Stores'<<<
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.

ATOM RSS1 RSS2