SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 26 | December | 2001 ]

<< Previous Message << >> Next Message >>


Date: Wed, 26 Dec 2001 07:04:47 PST7
From: dallas_acm <legan@acm.org >
Reply-To: scoug-help@scoug.com
To: scoug-help@scoug.com
Subject: SCOUG-Help: telnet command file ?

Content Type: text/plain

=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

> *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
> Message: B0000091034.MSG # in packet :#3.
> Date: Wed, 26 Dec 2001 03:39:59 PST7
> From: Peter Skye
> To: scoug-help@scoug.com
> Subject: SCOUG-Help: telnet command file ?
> --------------------------------------------------------------------
>
> =====================================================
> If you are responding to someone asking for help who
> may not be a member of this list, be sure to use the
> REPLY TO ALL feature of your email program.
> =====================================================
>
> Is there a way to run telnet and give it a file containing the commands
> to be executed?

Yes.
It's called Kermit.
http://www.columbia.edu/kermit

>
> For example, the following doesn't work. Is there a way to *make* it
> work . . .
>
> telnet -p 119 -l logfile.txt news.earthlink.net >
> where telnet.ctl contains
>
> helo
> authinfo user bigduck
> authinfo pass bigquack
> list
> quit
>
> - Peter

One of my e-mail accounts won't allow outgoing e-mail
unless a valid connection to a POP account is
happening simultaneously.
Here's a script I run on the linux box to
'Hog' a connection to my POP account, and just sit on
it, while I send outgoing mail.
'#' - EOL == comment except on the first line,
If it you are enamored with a particular telnet client,
and it uses standard I/O at the console,
you can use Kermit/2 to control it via
a 'pipe' network type.
The below doesn't do that but uses the
builtin telnet capabilities.
I think there is a Rexx dll available
that allows you to perform automated
telnet connections also.

#!/usr/local/bin/kermit -y

# Usage: spppxx [d]
# d = debug, does not run 'ticket' script,
# which self destructs on execution

# 23/04/2000 d.e.l. to run on 2.1 Debian Linux

# Objectives of this version of Kermit pophog dialer script:
# 1) dial into and keep a connection to the surfree
# mail server, to enable smtp access to mail.surfree.com

# echo 0: \&@[0] 1: \&@[1] 2: \&@[2] 3: \&@[3]
# quit

:confirmation
askq \%a {Password: }
askq \%b {Confirm Password: }
if not equal \%a \%b goto confirmation
echo Password confirmed.
echo hogging mail.surfree.com pop account.........

cd ~

open write ./pophogger
# this opens up what is essentially a here document.

writeln file \#!/usr/local/bin/kermit

writeln file delete ./pophogger
# Apparently, the script is completely loaded into
# memory before being executed, so this seems to work fine
# and keeps the file system uncluttered.
# It self-destructs the background script that dials the ISP.
# :-)

writeln file set network type tcp/ip
writeln file assign on_close \{
writeln file goto hammer
writeln file \}
# writeln file quit
writeln file :hammer
writeln file hangup
# writeln file set host mail.surfree.com:110
writeln file set host 209.228.64.11:110
writeln file if failure goto hammer
writeln file input 15 mail.surfree.com>
writeln file if failure goto hammer
# writeln file echo point 1
writeln file pause 1
writeln file output \\13
writeln file input 15 first
writeln file if failure goto hammer
# writeln file echo point 2
writeln file output user leganii\\13
writeln file input 15 OK
writeln file if failure goto hammer
# writeln file echo point 3
writeln file output pass \%a\\13
writeln file input 15 OK
writeln file if failure goto hammer
writeln file echo inside mail.surfree.com
writeln file pause 900
# writeln file exit
# writeln file connect
# writeln file while open connection \{
# writeln file \# while connected, do nothing
# writeln file \}
writeln file goto hammer

close write
run chmod oga+rwx ./pophogger

# echo 3: \&@[3]
# if not equal {\&@[3]} {d} run nohup ./spppdr \%a &
# if not equal {\&@[3]} {d} run nohup ./pophogger &
if not equal {\&@[3]} {d} run ./pophogger 2>&1 1>/tmp/pophog.log &

quit

Regards,
Dallas E. Legan II / leganii@surfree.com / dallasii@kincyb.com

Powered by......Lynx, the Internet at hyperkinetic speed.

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 26 | December | 2001 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.