forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSCONSOLE.DLL & Telnet question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu Oct 10, 2002 1:23 pm    Post subject: VDSCONSOLE.DLL & Telnet question Reply with quote

Hi,

Well for the first time I'm using VDS for the company I work for instead of my personnal stuff.

My goal is to convince them to use VDS for some automation procedures. But I'm having some problems with my
prototype project.

My project will be

- Choose a Database connection - Done
- Start automation software (Rational SQA Robot) - Done
- Choose the proper test script - Done
- Get some info from the database using vdsdb.dll - Done
- compile the script -Done
- Wait till the robot is finished running the test script - Done

Now my problem is when all is finished I want VDS to connect to a UNIX server thru telnet and run a batch job and
monitor the job until its finished and run a Windows app that retreived and formats the results to read into MS Excel.

I tried using VDSCONSOLE.DLL to start Telnet.exe (using the supplied example with the DLL), but nothing seems to happen. When I try with cmd.exe I get some output into the list.

Also tried using VDSIPP.DLL with the TCP protocol by doing :
Code:
external @path(%0)vdsipp.dll,demo
 INTERNET TCP,CREATE,1
 INTERNET TCP,CONNECT,myserverip
 info @INTERNET(TCP,CONNECTED,1)
 rem Its connected to the UNIX server
 rem Now send username
 INTERNET TCP,SEND,1,username@cr()
 info @INTERNET(TCP,MESSAGE,1)
 INTERNET TCP,DESTROY,1

Running that bit of code crashes VDS, don't know why exacly.

Ideally I would like to use VDSCONSOLE.DLL, that way I would get all that happens thru telnet into a list.

The VDS application will run on Windows NT 4.0 machines.

Currently testing the prototype on Win2K

Any ideas ? Very Happy

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Oct 10, 2002 6:45 pm    Post subject: Reply with quote

I don't know about VDSCONSOLE.DLL (never used it), but your vdsipp.dll code is missing a client number in the connect command. That could be causing the crash when you run it.

Try this:
Code:

external @path(%0)vdsipp.dll,demo
INTERNET TCP,CREATE,1
INTERNET TCP,CONNECT,1,myserverip
info @INTERNET(TCP,CONNECTED,1)
rem Its connected to the UNIX server
rem Now send username
INTERNET TCP,SEND,1,username@cr()
info @INTERNET(TCP,MESSAGE,1)
INTERNET TCP,DESTROY,1
Back to top
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu Oct 10, 2002 7:10 pm    Post subject: Reply with quote

Thanks.. But I erased it by mistake while posting it. Embarassed My mistake.. in my code its ok..
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Oct 10, 2002 8:07 pm    Post subject: Reply with quote

Maybe it is a good idea to use the vdsinet.dll from Tommy. That one doesn't let VDS crash. The downside of it is that you can only have one connection at the same time.
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Oct 11, 2002 4:19 pm    Post subject: Reply with quote

Ok heres a status for those interested.

Its not VDSCONSOLE the problem it seems. I tried another application made in C that does exacly what VDSCONSOLE does and the same problem happens when calling telnet.exe, nothing appears.

So I will have to find another solution very shortly. If I dont well too bad for this project. My boss really wants to see if I can send telnet commands and capture the results as it goes.

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group