- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: ftp command procedure
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
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
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
тАО07-28-2005 01:07 AM
тАО07-28-2005 01:07 AM
Compaq TCP/IP Services for OpenVMS VAX Version V5.3
VMS 7.3
The command procedure is below.
$ date = f$extract(0,10,f$cvtime())
$ mo = f$extract(5,2,date)
$ da = f$extract(8,2,date)
$ yr = f$extract(2,2,date)
$ fil = "dbt_"'mo''da''yr' + ".dat"
$ set def dka200:[jnc]
$ ftp/user=chambjx/pass=xxxxxxx upenn2 -
get pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'
When this is executed I receive the following error.
%DCL-W-NUMBER, invalid numeric value - supply an integer
\GET\
Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 01:19 AM
тАО07-28-2005 01:19 AM
Re: ftp command procedure
remove the minus sign at the end of the ftp line.
Rgds
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 01:28 AM
тАО07-28-2005 01:28 AM
Re: ftp command procedure
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 01:29 AM
тАО07-28-2005 01:29 AM
Re: ftp command procedure
Below is a very similiar procedure using Multinet.
$ date = f$extract(0,10,f$cvtime())
$ mo = f$extract(5,2,date)
$ da = f$extract(8,2,date)
$ yr = f$extract(2,2,date)
$ fil = "dbt_"'mo''da''yr' + ".dat"
$ ftp/user=system/pass=xxxxxx cm1 -
get dka200:[jnc]'fil' cachesys:'fil'
$!
This procedure works great.
I must admit, I had the procedure list working and managed to delete it! I am now trying to re-create it on TCPIP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 01:56 AM
тАО07-28-2005 01:56 AM
Re: ftp command procedure
I'm with Marc, remove hyphen.
In vms, every line with end hyphen means continue with next line.
Without hyphen, your command procedure open ftp and then execute get command.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 02:03 AM
тАО07-28-2005 02:03 AM
Re: ftp command procedure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 02:05 AM
тАО07-28-2005 02:05 AM
SolutionThis is how we do it, sending all files from a previously prepared directory:
$ ftp
prompt
asci
send bps$exp:*.*;*
bye
$
ftp + addrtess + user + password on one line, rest on a line by themselves.
So no "-" in your FTP-line...
In other occasions, a commandprocedure as above is created in that procedure, executed and deleted:
$ open/write FTPFILE ftp.com
$ write FTPFILE "ftp
$ write FTPFILE "prompt"
$ write FTPFILE "asci"
$ write FTPFILE "send bps$exp:*.*;*"
$ write FTPFILE "bye"
$ close FTPFILE
$ @ftp.com
$ delete/nolog ftp.com;*
Not very elegant, but who cares. It works...
Be sure though to redefine SYS$INPUT to TT: (as we have in ou command procedure)
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 03:20 AM
тАО07-28-2005 03:20 AM
Re: ftp command procedure
we essentially use Willem's solution.
Clumsy, but works great.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 03:54 AM
тАО07-28-2005 03:54 AM
Re: ftp command procedure
(all one line)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2005 03:55 AM
тАО07-28-2005 03:55 AM
Re: ftp command procedure
I will go for the COPY/FTP solution as mentioned by Ian:
$ COPY/FTP upenn2"chambjx xxxxxxx":: pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'
With TCP/IP Services you can not do the command in one line so you must remove the minus sign at the end of yours command. So you get the same thing as if you type the command:
$ ftp/user=chambjx/pass=xxxxxxx upenn2
get the FTP> prompt and type
FTP> get pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'
But now you get problems with symbol replacement. The symbols are not replaced.
If you want to replace this symbols you can use the pipe command:
$ PIPE WRITE SYS$OUTPUT -
"get pg_disk:[dir]''fil' dka200:[jnc]''fil'" -
| ftp/user=chambjx/pass=xxxxxxx upenn2
There is another solution which works with put, but not with get:
$ date = f$extract(0,10,f$cvtime())
$ mo = f$extract(5,2,date)
$ da = f$extract(8,2,date)
$ yr = f$extract(2,2,date)
$ define file "dbt_''mo'''da'''yr'.dat"
$ ftp/user=chambjx/pass=xxxxxxx upenn2
put file
Bojan