- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- ftp script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 05:39 AM
тАО06-25-2008 05:39 AM
ftp script
I am trying to find out a FTP script to transfer files in batch. I tried "ftp /INPUT" and it gives me error as:
%DCL-W-IVQUAL, unrecognized qualifier - check validity, spelling, and placement
\INPUT\
Can you give me an example?
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 06:45 AM
тАО06-25-2008 06:45 AM
Re: ftp script
VMS version, TCPIP stack and version, FTP client and version.
If You type FTP without arguments it will tell You client program and version.
If the client is e.g. HGFTP, then it has no /INPUT qualifier, but You can put commands into SYS$INPUT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 07:08 AM
тАО06-25-2008 07:08 AM
Re: ftp script
> [...]
Always good advice. Also:
show symbol ftp
It's also often useful to describe the actual
problem you're trying to solve, instead of
describing what went wrong with your attempt
to solve that problem. For example, if
you're trying to fetch files, you may find a
program like wget useful. In either
direction, COPY /FTP can be useful, if your
VMS version is not too old.
> If You type FTP without arguments it will
> tell You client program and version.
Really? Around here:
alp $ tcpip show version
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6
on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2
alp $ ftp
FTP>
Not very informative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 07:25 AM
тАО06-25-2008 07:25 AM
Re: ftp script
The ftp version is:
MultiNet FTP user process V4.4(119)
Can you show me how to use sys$input to script ftp commands?
Thanks,
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 07:34 AM
тАО06-25-2008 07:34 AM
Re: ftp script
MULTINET
FTP
/TAKE_FILE
/TAKE_FILE=file
Causes FTP to execute commands from the specified file before
entering command mode. This qualifier is functionally equivalent
to re-directing SYS$INPUT:.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:35 PM
тАО06-25-2008 01:35 PM
Re: ftp script
If your script is variable, you may want to use PIPE to feed commands into FTP:
$ ws="WRITE SYS$OUTPUT"
$ PIPE (ws "SET PASSIVE ON" ; -
ws "ls ''dstdir'''dstfile'") | -
FTP /INPUT=SYS$PIPE /USERNAME="''dstuser'" /PASSWORD="''dstpass'" 'dstnode' | -
(... pipe segment to catch and process output)
(I assume something similar can be done with Multinet)
On the other hand, if it's a simple file transfer, COPY/FTP or RCP is the way to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 01:52 PM
тАО06-25-2008 01:52 PM
Re: ftp script
Or, with a bit of effort, Kermit's FTP client
can be made to work on VMS, and it offers
rather extensive scriptimg capability. But
I'd guess that the poster wouldn't care.