- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: DCL script to FTP files
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-30-2010 06:00 AM
тАО07-30-2010 06:00 AM
Re: DCL script to FTP files
I'd love to get rid of the password, not my decision unfortunately.
It looks like the command in multi ftp does need the 3""" around the password to recognise it.
OPS> multi ftp 10.37.1.23 /username= ****** /password="""xxxxxx"""
ATSR22 MultiNet FTP user process V4.0(118)
Connection opened (Assuming 8-bit connections)
<
[Attempting to log in as ********]
The above will let me in
OPS> multi ftp 10.37.1.23 /username= ******** /password=XXXXXXXX
ATSR22 MultiNet FTP user process V4.0(118)
Connection opened (Assuming 8-bit connections)
<
[Attempting to log in as ********]
I have to somehow retain the 3""" when I write the command to the temp file without DCL interpreting them.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 06:39 AM
тАО07-30-2010 06:39 AM
Re: DCL script to FTP files
Oswald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 06:44 AM
тАО07-30-2010 06:44 AM
Re: DCL script to FTP files
and to write the number of quotes correctly in a DCL statement.
I usually do it by putting the quote in a DCL symbol, then use symbol substitution in the WRITE statement, like:
$ Q:= """
$ write file Q,Q,Q,"text",Q,Q,Q
to put text in 3 quotes in the output file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 07:57 AM
тАО07-30-2010 07:57 AM
Re: DCL script to FTP files
Joseph - I set up a symbol as suggested to represent " and it's working now. Took a little bit of messing around
Thanks again & have a good weekend
Cheers
BM I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 08:00 AM
тАО07-30-2010 08:00 AM
Re: DCL script to FTP files
If three pairs of quotes work when done interactively (ie """Test"""), then you will need more quotes inside the command file. It seems to me that for every command level, another set of quotes gets stripped off.
My two cents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 08:34 AM
тАО07-30-2010 08:34 AM
Re: DCL script to FTP files
Yeah I see what you are saying, got it set up like this now & it's working fine
$ Q:= """
$ open/write ftpjob ftpjob.tmp
$ wr ftpjob "$Multi ftp 10.37.1.23 /username= ********",-
"/password=",Q,Q,Q,"XXXXXXX""",Q,Q
$ wr ftpjob "cd /VAX/OUT/SHARE/"
$ wr ftpjob "put ben.txt ben.txt"
$ wr ftpjob "bye"
$ wr ftpjob "$exit"
$ close ftpjob
$ @ftpjob.tmp
$! delete ftpjob.tmp;
$ exit
As a matter of interest do you all use VMS at work? We have a lot of VAXs and a few Alphas here which the company keep threatening to get rid of. Thing is they are so embedded in the infrastructure of the business so it's hard to replace them (keeps me in work for a little longer I guess).
Cheers
BM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 08:55 AM
тАО07-30-2010 08:55 AM
Re: DCL script to FTP files
$ trgfil = "trgfile.txt"
$ copy/ftp/ascii -
'srcfil'
10.37.1.23"user pass"::"/HERE/THERE/WHATEVER/''trgfil'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 08:56 AM
тАО07-30-2010 08:56 AM
Re: DCL script to FTP files
$ srcfil ="srcfile.txt"
$ trgfil = "trgfile.txt"
$ copy/ftp/ascii -
'srcfil' -
10.37.1.23"user pass"::"/HERE/THERE/WHATEVER/''trgfil'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 09:16 AM
тАО07-30-2010 09:16 AM
Re: DCL script to FTP files
I think in future I'll be using copy/ftp, seems much simpler. I'll probably get asked to modify other scripts before long.
Cheers everyone
BM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2010 09:52 AM
тАО07-30-2010 09:52 AM
Re: DCL script to FTP files
Since I would need to establish a connection to do the rename I just did it as follows:
PUT CRAIG.DAT CRAIG.TMP
RENAME CRAIG.TMP CRAIG.DAT
The advantage of this approach is that if the network connection breaks part-way through the transmit, there isn't a correctly named file left overhanging. Many of the processes were automated and would poll incoming folders for specific files. Not good.
HTH
Craig