Transporting the Source Code [ HP Motif/iX Programmer's Supplement ] MPE/iX 5.0 Documentation
HP Motif/iX Programmer's Supplement
Transporting the Source Code
Hewlett-Packard networking services software available on both HP 9000
computer systems and HP 3000 computer systems enable you to transport
your source files across the network from one system to the other.
When transporting source files to a 900 Series HP 3000 computer system,
you must specify a specific record length (80 bytes is recommended) so
that the contents of your source are transferred to a file whose
structure (fixed-length ASCII) is easily accessible to text editors
available on MPE/iX.
You can use either the dscopy command available on your HP 9000 computer
system or the DSCOPY command available on your HP 3000 computer system or
you can use the ftp facility if it is available on your system.
NOTE The dscopy command can only copy fixed length MPE files across
systems. It does not support byte stream files. After
transferring files to MPE/iX you must convert your fixed length
MPE/iX files to byte stream files. To transfer byte stream files,
you must use ftp. For more information on byte stream files, refer
to New Features of MPE/iX: Using the Hierarchical File System
(32650-90351). For information transferring files using ftp, refer
to Using ARPA Services (B1014-90006) and HP ARPA File Transfer
Protocol User's Guide (36957-61002).
From an HP 3000 computer system
Following is an example of using the NS/3000 DSCOPY command to transport
a source file UXsource across the network from an HP 9000 computer system
with the node name producer, user name tester01, and password test001:
:DSCOPY
/usr/source/UXsource:producer[tester01:test001]
TO IXSOURCE ;RSIZE=80 ;FIX
NOTE Files that are copied using DSCOPY need to use MPE file naming
syntax for the IXSOURCE file. When you logon to the MPE/iX
machine, you must convert these files to byte stream files if you
wish to use the make facility or the c89 interface to compile the
files. To avoid this limitation, use ftp to transfer the files.
To use ftp to transfer files, follow the procedure below:
1. RUN the ftp program:
:RUN FTP.ARPA.SYS
2. At the prompt, connect to the desired system:
ftp>open producer
3. Type your user name and password as requested.
4. Transfer the files to your system. Notice that the destination
file name must begin with a . (dot) and a / (slash) to indicate
that it is an hierarchical file system file name. Also, by
specifying the b, this file will be transferred as a byte stream
file.
ftp>get /path/file.c ./file.c;rec=,,b
5. Exit the ftp program:
ftp>close producer
ftp>quit
For information transferring files using ftp, refer to Using ARPA
Services (B1014-90006) and HP ARPA File Transfer Protocol User's Guide
(36957-61002).
From an HP 9000 Computer System
Following is an example of using the NS/9000 dscopy command to transport
a source file UXsource across the network to a 900 Series HP 3000
computer system with the node name target, logon specification
TESTER01.SYS,TSTGROUP, and account password TEST001:
:dscopy -L80 -F UXsource
target#TESTER01.SYS/TEST001,TSTGROUP#XLSOURCE
Refer to the NS Cross-System NFT Reference Manual (5958-8563) for more
information regarding network file transfer.
[REV BEG]
To use ftp to transfer files, use the following procedure.
1. Start the ftp program:
$/usr/bin/ftp
2. Make a connection to the target system:
ftp>open target
3. Log on to the MPE system. The password will not be echoed and
must be separated by commas. (If you do not have a user password,
you must still specify the , (comma) before the account password.)
Name (target:user):user.account
Password:[userpass][,acctpass][,grouppass]
4. To put files on the MPE/iX system as HFS, byte-stream files:
ftp>put /path/file.c ./file.c;rec=,,b
5. Close the connection to the remote system:
ftp>close target
6. Quit the ftp program:
ftp>quit
For information transferring files using ftp, refer to Using ARPA
Services (B1014-90006) and HP ARPA File Transfer Protocol User's Guide
(36957-61002).[REV END]
MPE/iX 5.0 Documentation