- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- VMS Command Prompt - Can't Tell?!?!
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
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
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
12-20-2005 04:35 AM
12-20-2005 04:35 AM
This works great in AIX and I'm able to execute commands in AIX and interact via telnet. However, executing the exact same code on a VMS box, I get undefined errors, essentially saying that the command failed. I'm just passing simple commands like "dir" or "sho def."
I've attached my code and sample output from a putty telnet session to the vms node. I **think** it has to do something with that special character right before the prompt (see putty output). I've worked on this for >2 weeks and have just been spinning my wheels.
If anyone could help, I'd really appreciate it.
-Allan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 08:00 AM
12-20-2005 08:00 AM
Re: VMS Command Prompt - Can't Tell?!?!
I'll try it at work.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 09:04 AM
12-20-2005 09:04 AM
Re: VMS Command Prompt - Can't Tell?!?!
troubled by this odd quotation mark count?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 09:24 AM
12-20-2005 09:24 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 06:41 PM
12-20-2005 06:41 PM
Re: VMS Command Prompt - Can't Tell?!?!
http://javassh.org/space/start
Click on JTA binaries.
It worked over here but some security settings have changed and now it no longer works. But it could work for you.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 09:39 PM
12-20-2005 09:39 PM
Re: VMS Command Prompt - Can't Tell?!?!
could it be, that the user on the OpenVMS node did define symbols, which override your commands. My experience is, that the most one did not know that every action (inlcuding telnet) implied a LOGIN. So you have to check the OpenVMS account for the presens of the LOGIN.COM procedure and there content. Also you have to check that the right DCLTABLES will be used.
Best regards R. Wingert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 09:41 PM
12-20-2005 09:41 PM
Re: VMS Command Prompt - Can't Tell?!?!
Looking at your attachment, I suspect that the "funny" characters are either line feeds, carriage returns, or nulls (I will try to do a hex dump of the file later, if I can find the time).
What is your check for command success/failure?
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2005 02:31 AM
12-21-2005 02:31 AM
Re: VMS Command Prompt - Can't Tell?!?!
I don't think it can find the prompt, which is what it needs in order for it to execute the next command.
I don't have any specific error checking in Coldfusion turned on, but it would typically return the entire window to the variable (in the case of the attached code: hello2).
I can't use an applet - it has to be just a java call to the jar file embedded in the webpage. It will run as a nightly job which will go out and see if a set of particular files exist. If they do, then I'll store the dates of those files in a database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 07:43 AM
12-29-2005 07:43 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 08:47 AM
12-29-2005 08:47 AM
Re: VMS Command Prompt - Can't Tell?!?!
telnet.connect("#node#", 23);
telnet.login("#username#","#password#");
telnet.setPrompt("#prompt#");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 08:51 AM
12-29-2005 08:51 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 09:11 AM
12-29-2005 09:11 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 09:20 AM
12-29-2005 09:20 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 09:46 AM
12-29-2005 09:46 AM
Re: VMS Command Prompt - Can't Tell?!?!
If you're sure you're making through the LOGIN.COM and there isn't a SET TERM or such tripping you up, then maybe it is the extra CR that's causing the problem -- but I don't see how.
Sorry, that's about all I have to offer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 04:38 AM
12-30-2005 04:38 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:05 AM
12-30-2005 05:05 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:10 AM
12-30-2005 05:10 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:12 AM
12-30-2005 05:12 AM
Re: VMS Command Prompt - Can't Tell?!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:20 AM
12-30-2005 05:20 AM
Re: VMS Command Prompt - Can't Tell?!?!
That's why if you can't identify the login as coming from your application, you need a special username to log in with. Don't use that user for anything other than your web app (and testing, of course) and make it so that it can olny do the task you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 05:34 AM
12-30-2005 05:34 AM
Re: VMS Command Prompt - Can't Tell?!?!
The SET TERM command is just DCL, though, so you could try sending it just after your login.
I suggested a special username because you need someway to make this login appear unique if you want to cause the LGICMD file to act in a unique way. The other option is to make your client terminal/node identifiable in the login.
Don't know enough about your environment to make suggestions about that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 07:06 AM
12-30-2005 07:06 AM
Re: VMS Command Prompt - Can't Tell?!?!
Thanks for the openvms.org link - i got an account on their cluster. I tried running my program - and again I am having the same problem as I was having on my nodes here - it is not getting anything back after sending "dir"... so i dont know what to do... Maybe i'll try setting the terminal type in the login.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 07:08 AM
12-30-2005 07:08 AM
Re: VMS Command Prompt - Can't Tell?!?!
++++++
$ set terminal/inquire/noeightbit
+++++++
no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 08:04 AM
12-30-2005 08:04 AM
SolutionI'm unable to build a test from here, but I still don't think your problem is with the "dir " command. I don't think you're making it that far.
I (finally) just looked at the man and mine says that telnet.login only works if the login prompts are "login:" and "Password:".
VMS uses "Username:" and "Password:" so you might instead need waits & sends for the Username: & Password:.
This would mean you'd need different scripts for unix & VMS.
If you *really* are making it past the login with your script (which is *not* actually doing the same thing as your PuTTY session) then I'm at a loss.
The prompt should be recognized even if it has leading characters.
The "dir " should work regardless of the terminal type.
I keep hoping one of the VMS-Java experts will pop in. I guess everyone left early for the holiday (I'm gone in a few minutes, so have a safe New Year!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 08:21 AM
12-30-2005 08:21 AM
Re: VMS Command Prompt - Can't Tell?!?!
HOLY HELL. HOLY HELL HOLY HELL HOLY HELL. You were right. AIX = "login" and VMS = "username". Wow, I can't believe that... I am an idiot for not noticing that. Thanks so much, Doug. **Now walks up and down the hallway kicking himself**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2005 09:21 AM
12-30-2005 09:21 AM
Re: VMS Command Prompt - Can't Tell?!?!
first of all: Welcome to the VMS forum.
I noticed you only assigned points to the last answer.
The intention of the points system is, to assign points to ALL answers.
How many is entirely YOUR decision, but even if you think an answer does not merit any points, then please do assign zero, to remove the UNASSIGNED.
It shows up in your profile, and low percentages of assignments are frowned upon.
Happy new year!
Proost.
Have one on me.
jpe