473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

VBA Telnet ?????

I am trying to find a simple example on how do telnet from VBA, but I
am not having any luck. Most of the information I am finding is out
dated or vauge at best.

Here is what I need to do,
1. Build a text file from a table.
2. FTP this file to a UNIX server.
3. Execute a UNIX command to process the file.

I have #1 and #2 working great, however I cant seem to find an easy
solution to make a telnet connection and execute 1 simple command.

Does anyone have any sample code to do this?

Thanks,
AJS

Sep 11 '06 #1
5 10048
Your description of the problem is unclear. Do you mean you can't get
the FTP to work? There's code at Randy Birch's site for that, I'm
sure. www.mvps.org/vbnet just search around. there's TONS of code
there, and I'm positive there's code for doing FTP. As for getting the
server to process the file - not a clue.

Sep 11 '06 #2
Thanks for the reply,

My problem is Telnet, How do I telnet from VBA so that I can execute a
command on a UNIX box.
AJS

pi********@hotmail.com wrote:
Your description of the problem is unclear. Do you mean you can't get
the FTP to work? There's code at Randy Birch's site for that, I'm
sure. www.mvps.org/vbnet just search around. there's TONS of code
there, and I'm positive there's code for doing FTP. As for getting the
server to process the file - not a clue.
Sep 11 '06 #3
an*****@station5.net wrote in
news:11**********************@h48g2000cwc.googlegr oups.com:
My problem is Telnet, How do I telnet from VBA so that I can
execute a command on a UNIX box.
Why not do it via executing a script via HTTP, instead?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Sep 11 '06 #4
an*****@station5.net wrote:
I am trying to find a simple example on how do telnet from VBA, but I
am not having any luck. Most of the information I am finding is out
dated or vauge at best.

Here is what I need to do,
1. Build a text file from a table.
2. FTP this file to a UNIX server.
3. Execute a UNIX command to process the file.

I have #1 and #2 working great, however I cant seem to find an easy
solution to make a telnet connection and execute 1 simple command.

Does anyone have any sample code to do this?
Not a lot of (good) samples out there. Check out my post on this from about a month or two
ago:

http://groups.google.com/group/comp....e82091c7b3eecb

(of course this URL will wrap...)

--
'---------------
'John Mishefske
'---------------
Sep 12 '06 #5
an*****@station5.net wrote:
Thanks for the reply,

My problem is Telnet, How do I telnet from VBA so that I can execute a
command on a UNIX box.
AJS

pi********@hotmail.com wrote:
Your description of the problem is unclear. Do you mean you can't get
the FTP to work? There's code at Randy Birch's site for that, I'm
sure. www.mvps.org/vbnet just search around. there's TONS of code
there, and I'm positive there's code for doing FTP. As for getting the
server to process the file - not a clue.
Putty is preferrable to telnet if security is an issue. '69 Camaro
provided the following link:

http://www.chiark.greenend.org.uk/~s.../download.html

I'm not sure about the best way to use it from VBA. Adapt the source
code into a DLL? Write an interface that VBA can use to automate
putty? Shell to putty in combination with a command script created by
VBA? Maybe FTP up a file that unix will run later (cron?):

http://groups.google.com/group/comp....776898abd92477

James A. Fortune
CD********@FortuneJames.com

Access Tip:

Use the default property name for a control explicitly instead of
relying on the default for the control implicitly. It's good practice
to put, e.g., .Value in so that if the default for the control changes
in a future version of Access the code will survive the conversion
process providing .Value still exists. Also, note the following
example from "Dao Object Model - The Definitive Reference" by Helen
Feddema (ISBN: 1-56592-435-5 O'Reilly 2000):

"For example, the following two statements appear to be more or less
identical:

strCustomer = rst.Fields("ContactName")
Set fld = rst.Fields("ContactName")

However, the first line uses the default Value property to retrieve the
value of the ContactName field for the current record. The second
line, on the other hand, uses the default Item property to retrieve the
Field object that represents the ContactName column. Changing the
first line of code to:

strCustomer = rst.Fields("ContactName").Value

would remove the ambiguity.

....

For example, the following two statements appear to be more or less
identical:

blnSpecialCustomer = tdf.Properties("Special")
Set prp = tdf.Properties("Special")

However, the first line uses the default Value property to retrieve the
value of the Special user-defined Boolean property. The second line,
on the other hand, uses the default Item property to retrieve the
Property object itself. Changing the first line of code to:

blnSpecialCustomer = tdf.Properties("Special").Value

would remove the ambiguity."

Sep 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan | last post by:
I'm writing a simplistic telnet client in VB6 and I've run into a small snag. The program has a textbox to write in the string to be sent using ..SendData and has another textbox that displays...
3
by: Yannick Turgeon | last post by:
Hello all, I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function...
4
by: Donnal Walter | last post by:
On Windows XP I am able to connect to a remote telnet server from the command prompt using: telnet nnn.nnn.nnn.nnn 23 where nnn.nnn.nnn.nnn is the IP address of the host. But using telnetlib,...
2
by: john brown | last post by:
I'm telnetting into a router. Apart from the fact I can't seem to view the output when iniciating the session, I can't match one of the expressions using Net::Telnet. I can telnet into the router...
0
by: CJ | last post by:
Can someone look at the code below and tell me whats going on? Here is the problem. I can successfully telnet one of our routers and successfully put in a command in the while statement, but...
2
by: eight02645999 | last post by:
hi i am using a telnet session to simulate an authentication mechanism USER = "user" PASSWORD = "password" try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5)...
2
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote...
1
by: perlxyo999 | last post by:
Hi , I have a problem doing manipulation (like split) in string comeing back from telnet commnd : $HOST = 'xxx'; $USER = 'yyy20'; $PASS = 'yyy-pass'; #$telnet = Net::Telnet->new($HOST);...
6
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason....
17
by: ravimath | last post by:
Dear all, I have written following script to loin to router bu it is showing error. #!c:\Perl\bin; use strict; use warnings; my $hostname = 'REMOVED FOR YOUR PROTECTION'; my $password =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.