%SYSTEM-W-NODEVAVL, no device available
%SMG-F-INVPAS_ID, invalid pasteboard-id
Any idea how to do this? (By the way, I want to telnet to a port which
requires neither user name nor password.) The REAL reason I want to do
this is that I don't know how NEWSRDR can post an article retaining any
headers it might have (I don't believe it can), so I want to telnet
directly to port 119 and do it from DCL. I believe I have everything
working except telnetting from within a .COM file. FTP from within a
.COM file works, by the way, and telnet doesn't, to whichever port.
David Mathog posted the URL of something which I can modify to do what I
want; the problem seems to be only the telnet from withing the .COM file
using UCX.
--
Phillip Helbig Email .......... p.he...@jb.man.ac.uk
Nuffield Radio Astronomy Laboratories Tel. ..... +44 1477 571 321 (ext. 297)
Jodrell Bank Fax ................. +44 1477 571 618
Macclesfield Telex ................. 36149 JODREL G
UK-Cheshire SK11 9DL Web .... http://www.jb.man.ac.uk/~pjh/
My opinions are not necessarily those of NRAL or the University of Manchester.
> Subject says it all: how can I run telnet from within a .COM file with
> UCX? Ideally, following the $ TELNET command with a few lines of
> input. Simply taking what works when typed in doesn't work. I get
>
> %SYSTEM-W-NODEVAVL, no device available
> %SMG-F-INVPAS_ID, invalid pasteboard-id
>
> Any idea how to do this?
I realise I haven't said enough:
===============================================================================
From: HELBIG "Phillip Helbig" 12-DEC-1997 12:06:58.01
To: SMTP%"HT...@btmv56.se.bel.alcatel.be"
CC: HELBIG
Subj: Re: telnet with UCX from within a .COM file
> Insert the following the following line before your telnet command.
>
> $ define /user sys$input sys$command
> $ telnet HOSTNAME
Yes, this works, as does tt: instead of sys$command. The problem is
(perhaps I didn't make this clear) is that I want the lines (without a
preceding dollar sign) in the .COM file to be the input to the telnet
command. With FTP, there is an /INPUT qualifier. With TELNET, there is
not. With, for example, MAIL, I can have $ MAIL in a .COM file,
followed by MAIL commands. I want to do something similar with telnet.
Any ideas?
===============================================================================
First, which is better, sys$command or tt: in this case and why.
Second, I tried replying to the kind person who sent me the above email,
but it bounced.
> > Subject says it all: how can I run telnet from within a .COM file with
> > UCX? Ideally, following the $ TELNET command with a few lines of
> > input. Simply taking what works when typed in doesn't work. I get
> >
> > %SYSTEM-W-NODEVAVL, no device available
> > %SMG-F-INVPAS_ID, invalid pasteboard-id
> >
> > Any idea how to do this?
> > Insert the following the following line before your telnet command.
> >
> > $ define /user sys$input sys$command
> > $ telnet HOSTNAME
> Yes, this works, as does tt: instead of sys$command. The problem is
> (perhaps I didn't make this clear) is that I want the lines (without a
> preceding dollar sign) in the .COM file to be the input to the telnet
> command. With FTP, there is an /INPUT qualifier. With TELNET, there is
> not. With, for example, MAIL, I can have $ MAIL in a .COM file,
> followed by MAIL commands. I want to do something similar with telnet.
Telnet do expect a real terminal. Or put another way: it does not use
device-independet RMS calls, but device-dependent QIO-calls.
Best advice is to use the pseudo-terminal-routines to activate
telnet and send the proper commands.
If you want to get started the easy way, then try getting my PTD program
from ftp://ftp.hhs.dk/ptd/ptd.zip !
Arne
(basicly you start the program with an input-file and it creates a new
process which is fed by the input-file, and pseudo-terminals are
considered a real terminal)
Perhaps an even easier approach would be to use C-Kermit, which
can act as a TELNET client, and which allows you to script the
initial part of the TELNET connection. I'm not sure that this
supports UCX, but I bet that it does; it definitely works with MultiNet.
Aaron
It is a fully scriptable Telnet client -- you can script as much of your
session as you want, not just the initial login. The script language is
complete with variables, arrays, macros, IF-ELSE, WHILE, FOR, SWITCH, built-in
and user-defined functions, etc etc, and it is portable to hundreds of other
platforms so scripts you develop in (for example) VMS are portable to UNIX,
Windows, DOS, etc etc. And of course it also transfers files, translates
(inter)national character sets, manages local files as well as remote ones,
sends pages, and lots more, and it also works on serial (dialup, LAT, etc)
connections. More info at:
http://www.columbia.edu/kermit/ck60.html
- Frank
>Subject says it all: how can I run telnet from within a .COM file with
>UCX? Ideally, following the $ TELNET command with a few lines of
>input. Simply taking what works when typed in doesn't work. I get
>
>%SYSTEM-W-NODEVAVL, no device available
>%SMG-F-INVPAS_ID, invalid pasteboard-id
It is expecting an SMG device (i.e. a terminal) The SMG libraries will
not attach to a file. You might like to look at Kermit
implementations (although the standard widely-available version does
not support things like modem manipulation), or write a custom app.
What are you actually trying to do? You will probably be able to use
the RSH service to accomplish what you need to do.
Note: the opinions expressed in this opinion do not necessarily
represent the opinions of the opinionated person expressing the
opinion. Or something.
http://www.columbia.edu/kermit/ck60.html
It can be a Telnet or Rlogin client as well as a serial communications
program (in which guise, of course it knows all about modems). You're
probably thinking of Kermit-32, which is over 10 years old.
- Frank