Russ,
You can do it a couple of ways. You can add the commands "in line" or you
can use a redirect. The following job stream demonstrates both methods.
[1:35]/TECHTEST/BACKUJ>print ftptest
!job ftptest,tgbackuj.techtest
!
!#************************************
!listfile file@
!#************************************
!
!ftp.arpa.sys
open maple
user tgbackuj.techgrp
secret
put file1 file2
exit
!
!#************************************
!print ftpcom
!#************************************
!
!ftp.arpa.sys<ftpcom
!
!#************************************
!listfile file@
!#************************************
!
!eoj
[1:36]/TECHTEST/BACKUJ> print ftpcom
open maple
user tgbackuj.techtest
secret
put file1 file3
exit
[1:37]/TECHTEST/BACKUJ>
Here is the execution of this job stream.
:JOB FTPTEST,TGBACKUJ.TECHTEST,BACKUJ.
Priority = DS; Inpri = 8; Time = UNLIMITED seconds.
Job number = #j13.
TUE, MAY 21, 2002, 7:12 PM.
HP3000 Release: C.65.00 User Version: C.65.00
MPE/iX HP31900 C.25.06 Copyright Hewlett-Packard 1987.
All rights reserved.
STREAMED BY JON,TGBACKUJ.TECHTEST (#S5) ON LDEV# 3
STREAM DATE: TUE, MAY 21, 2002, 7:12 PM
:
:#************************************
:listfile file@
FILENAME
FILE1
:#************************************
:
:ftp.arpa.sys
File Transfer Protocol [A0010A02] (C) Hewlett-Packard Co. 1990
ftp> open maple
220 HP ARPA FTP Server [A0010A02] (C) Hewlett-Packard Co. 1990
Connected to maple (10.32.19.203). (FTPINFO 40)
ftp> user tgbackuj.techtest
331 Password required for TGBACKUJ.TECHTEST. Syntax: userpass
Password:
230 User logged on
Remote system type is MPE/iX
200 Type set to I.
ftp> put file1 file2
200 PORT command ok.
150 File: file2;REC=-72,3,F,ASCII;DISC=1,1 opened; data connection will be
open ed
226 Transfer complete.
72 bytes sent in 0.00 seconds (23.44 Kbytes/sec)
ftp> exit
221 Server is closing command connection
:
:#************************************
:print ftpcom
open maple
user tgbackuj.techtest
secret
put file1 file3
exit
:#************************************
:
:ftp.arpa.sys<ftpcom
File Transfer Protocol [A0010A02] (C) Hewlett-Packard Co. 1990
ftp> open maple
220 HP ARPA FTP Server [A0010A02] (C) Hewlett-Packard Co. 1990
Connected to maple (10.32.19.203). (FTPINFO 40)
ftp> user tgbackuj.techtest
331 Password required for TGBACKUJ.TECHTEST. Syntax: userpass
Password:
230 User logged on
Remote system type is MPE/iX
200 Type set to I.
ftp> put file1 file3
200 PORT command ok.
150 File: file3;REC=-72,3,F,ASCII;DISC=1,1 opened; data connection will be
open ed
226 Transfer complete.
72 bytes sent in 0.00 seconds (23.44 Kbytes/sec)
ftp> exit
221 Server is closing command connection
:
:#************************************
:listfile file@
FILENAME
FILE1
FILE2
FILE3
:#************************************
:
:eoj
CPU sec. = 5. elapsed min. = 1. TUE, MAY 21, 2002, 7:12 PM.
Thanx,
Jonathan (Jon) M. Backus, MPE-CSM ~ President
Tech Group ~ 15 Catawba Place ~ Hagerstown, MD ~ 21742-6515
Email: [log in to unmask] ~ AIM: JMBackus
Vmail: 301.988.0614 ~ Fmail: 301.714.1854
Web: www.TechGroupMD.com
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Russ Smith
Sent: Tuesday, May 21, 2002 7:09 PM
To: [log in to unmask]
Subject: [HP3000-L] Showing my FTP stupidity
I want to create a command file or at least add some commands to a couple
jobs I have to send files from my 3000 to an FTP site of one of my vendors.
What do I need to do to make this work?
Rs~
Russ Smith
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * *
The opinions expressed in this email are mine, and are not meant to reflect
those of any other party. The subject matter herein is intended solely for
the named recipient(s) of this email.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * *
* 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 *
|