You could also POSIX copy the file, open read or write, and send the copy !
[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
[]
[] Wyell Grunwald
[] Senior Technical Analyst
[] Geisinger Health System
[] Information Technology
[] Mail Code 30-33
[] 100 North Academy Avenue
[] Danville, Pennsylvania 17822
[] Phone: 570-271-7342
[] Fax: 570-271-5162
[] e-mail: [log in to unmask]
[] Web: www.geisinger.org
[]
[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
>>> Michael Berkowitz <[log in to unmask]> 12/11/01 11:12AM >>>
Lim Say Ho writes
Hi everyone,
we wish to backup some ASCII files periodically from one HP3000 system to
another. However, some of these files will be in use at the time of the ftp.
Is there anyway for me to ftp these files?
------------------------------------------------------
Well if a file is opened for shared read access you should be able to.
:LISTF AA,9
********************
FILE: AA.MB.xxx
1 Accessor(O:1,P:1,L:0,W:0,R:1),Share
#S205 MB.xxx P:1,L:0,W:0,R:1 LDEV: 113
#P1028 (LOOKAT.UTIL.SYS)
ACCESS: R-excl REC#: 0 FNUM: 9
LOCKS: none
:FTP HP3000
File Transfer Protocol [A0009O11] (C) Hewlett-Packard Co. 2000 [PASSIVE
SUPPORT]
220 HP ARPA FTP Server [A0009O15] (C) Hewlett-Packard Co. 2000 [PASV
SUPPORT]
Connected to HP3000 (NNN.NN.1.1). (FTPINFO 40)
Name(mb): MB.xxx ,xxxx
331 Password required for MB.xxx. Syntax: [,]acctpass
230 User logged on
Remote system type is MPE/iX.
200 TIMEOUT command ok.
ftp> PUT AA AAA
200 PORT command ok.
150 File: AAA opened; data connection will be opened
200 PORT command ok.
150 File: AAA;REC=-72,3,F,ASCII;DISC=1,1 opened; data connection will be
opened
226 Transfer complete.
72 bytes sent in 0.00 seconds (23.44 Kbytes/sec)
ftp>
If the file is opened for write access you can't transfer
File accessed exclusively. (FTPERR 45)
You also cannot use a file equate.
:FILE AA;SHR;LOCK
PUT *AA AAAA
We don't allow MPE/XL file equates, sorry. (FTPERR 31)
Mike Berkowitz
Guess? Inc.
* 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 *
|