HP3000-L Archives

September 2008, 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:
donna hofmeister <[log in to unmask]>
Reply To:
Date:
Tue, 16 Sep 2008 14:55:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (127 lines)
try changing the single quotes in your netrc file to double quotes.

(you do, of course, have good security on the netrc file, yes? :-)     - d

---
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330


> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
> Behalf Of James B. Byrne
> Sent: Tuesday, September 16, 2008 2:00 PM
> To: [log in to unmask]
> Subject: [HP3000-L] SYSCONF and FTPIT jobs
> 
> I have this mostly working now, with the exception of the ftp transfer
> of
> the output to another host. Before I start hacking at the FTPIT job I
> would like to obtain some information.
> 
> I intend to move the conf.yyyy-mm-dd file to a drop box on a Linux
> server.
>  The target host is SELinux enabled and uses vsftpd as the ftp daemon.
> I
> have configured that host to accept anonymous connections to the drop
> directory and have tested this from the HP3000 client and proven that
> it
> all works.
> 
> However, the FTPIT job fails nonetheless and it seems to be a matter of
> authentication.  I have configured the netrc file, to the best of my
> very
> limited understanding, but I rather suspect that this is where the
> problem
> lies.
> 
> sysnetrc.sysconf =
> 
> machine '216.185.71.23' login 'anonymous' password 'hp3k01.hamilton'
> 
> FTPIT.JOBS.SYSLOCAL
> 
>  :setvar hpautocont true
>  :reset @
>  :
>  :setvar _fi_dir        '/SYS/SYSCONF/'
>  :setvar _fi_cur_file   _fi_dir + 'CURRENT'
>  :if not finfo(_fi_cur_file,'exists')
>  *** EXPRESSION FALSE: COMMANDS IGNORED UNTIL MATCHING ELSEIF/ELSE
>  /ENDIF
>  :  tellop ERROR: !_fi_cur_file does not exist
>  :  tellop        Contact HP3000 Computer System Support
>  :  setjcw jcw fatal
>  :else
>  *** RESUME EXECUTION OF COMMANDS
>  :  input _fi_file < !_fi_cur_file
>  :  if not finfo(_fi_file,'exists')
>  *** EXPRESSION FALSE: COMMANDS IGNORED UNTIL MATCHING ELSEIF/ELSE
>  /ENDIF
>  :    tellop ERROR: !_fi_file does not exist
>  :  tellop        Contact HP3000 Computer System Support
>  :    setjcw jcw fatal
> (47/86) Continue?
>  :  else
>  *** RESUME EXECUTION OF COMMANDS
>  :    file netrc.pub=sysnetrc.sysconf
>  :    setvar _fi_node           "192.168.2.23      "
>  :    setvar _fi_new_file_name  "/ftp-drop/" + "hp3k01.conf"
>  :    echo exitonerror>ftpin
>  :    echo ascii>>ftpin
>  :    echo put !_fi_file !_fi_new_file_name>>ftpin
>  :    echo quit>>ftpin
>  :    print ftpin
>  exitonerror
>  ascii
>  put /SYS/SYSCONF/conf.2008-09-16
>            /ftp-drop/hp3k01.conf
>  quit
>  :    setvar ftplasterr 0
>  :    ftp !_fi_node < ftpin
> 
>  File Transfer Protocol [A0012E07] (C) Hewlett-Packard Co. 2002
> [PASSIVE
> SUPPORT]
>  220 (vsFTPd 2.0.5)
>  Connected to 192.168.2.23.  (FTPINFO 40)
>  ftp> exitonerror
>  ExitOnError mode on.  (FTPINFO 33)
>  ftp> ascii
> (70/86) Continue?
>  530 Please login with USER and PASS.
>  221 Goodbye.
> 
>  :    if ftplasterr <> 0
>  *** EXPRESSION TRUE
> 
> 
> So, it seems to me that the info in the netrc file is not being used or
> is
> corrupted.  Have I misunderstood the format of the netrc file?  Have I
> left something out?
> 
> I also have concerns about the generated ftpin file.  It seem to me
> that
> there seem to be a <cr> being inserted between the source and the
> target
> filenames somehow.  However, we never get to that point because of the
> login issue.
> 
> Regards,
> 
> --
> ***          E-Mail is NOT a SECURE channel          ***
> James B. Byrne                mailto:[log in to unmask]
> Harte & Lyne Limited          http://www.harte-lyne.ca
> 9 Brockley Drive              vox: +1 905 561 1241
> Hamilton, Ontario             fax: +1 905 561 0757
> Canada  L8E 3C3
> 
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2