Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the attribute on a file on a Windows server using OpenVMS

 
Remona Munson
Occasional Contributor

Changing the attribute on a file on a Windows server using OpenVMS

I need to write a command file in OpenVMS which will change the attribute on a file on a Windows 2003 server. I can FTP and TELNET to the machine. I have tried doing it with TELNET by modifying a sample command file that Robert Brooks left on another question, but I can't get it to work.

Can someone tell me what I'm doing wrong or suggest another simple way to do it? My code is attached.
5 REPLIES
Karl Rohwedder
Honored Contributor

Re: Changing the attribute on a file on a Windows server using OpenVMS

Are there any error messages?
I assume, that doing the ATTRIB locally using the user/pass works?

regards Kalle
Steven Schweda
Honored Contributor

Re: Changing the attribute on a file on a Windows server using OpenVMS

If the goal is to run some command on the
Windows system, I'd certainly prefer to use
something like rsh/rexec or ssh, rather than
trying to write a script to run an
interactive Telnet session.

Also, your procedure never seems to _read_
anything (like the greeting and prompts)
from the remote system. I'd expect that to
cause trouble. (But what do I know?)

When I have needed to automate a Telnet
session (talking to a Cisco 678 DSL
modem/router, for example), I've used Kermit.

http://www.columbia.edu/kermit/ck80.html
http://www.columbia.edu/kermit/ckscripts.html
Remona Munson
Occasional Contributor

Re: Changing the attribute on a file on a Windows server using OpenVMS

I'm not getting any error messages.

The windows server will not accept rsh/rexec commands.

I have never used ssh or kermit. Could someone give me some pointers.
Steven Schweda
Honored Contributor

Re: Changing the attribute on a file on a Windows server using OpenVMS

> The windows server will not accept
> rsh/rexec commands.

That's the first thing I'd work on, then.

> I have never used ssh or kermit.

It's about time, then. But if the Windows
system doesn't do "rsh", I wouldn't expect
it to do "ssh", either, although it's
possible. Further "ssh" advice would
probably depend on little things, like which
VMS version you're running, with which TCP/IP
package, on which kind of hardware.

> Could someone give me some pointers.

Did you follow the Kermit links already
provided?

> [...] modifying a sample command file
> that Robert Brooks left on another
> question [...]

Speaking of pointers, a pointer to that
(working?) script might have been helpful.
Remona Munson
Occasional Contributor

Re: Changing the attribute on a file on a Windows server using OpenVMS

> That's the first thing I'd work on, then.

I don't have authorization to change that.

> Did you follow the Kermit links already
provided?

Yes I did, but there is a lot of documentation there and I was hoping someone would point me to a similar script so I don't have to spend the next three months reading all of the documentation.

>Speaking of pointers, a pointer to that
(working?) script might have been helpful.

You can see a copy of Robert's command file at the end of the thread at this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1036086