VanDyke Software Forums

Go Back   VanDyke Software Forums > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-02-2005, 05:56 AM
sdl sdl is offline
Registered User
 
Join Date: Aug 2005
Location: Atlanta
Posts: 6
Newb Question on O&M

Hello,
Can someone point me to a good resource that describes the Objects and Methods that are available to me via Perlscript in CRT? I'm just getting started in the scripting side of CRT and I would like to understand things like the options that exist for session->connect. One example has a "/s" and I would like to understand what this and others are for.

Thanks,
Steve
Reply With Quote
  #2  
Old 08-02-2005, 12:57 PM
jdev's Avatar
jdev jdev is offline
VanDyke Customer Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 303
Although our documentation doesn't provide usage examples in perlscript, the same API documentation applies to all ActiveX scrpiting languages. However, for each different language, you'll need to follow the correct syntax for accessing objects and methods. There isn't much that we have in the way of example scripts using perlscript, but here are a few links that should get you started:

FAQ on PerlScripts in CRT/SecureCRT

Example perlscript code:
Login.pl
ConnectMultiSession.pl

With respect to the options available for the crt.Session.Connect method, the documentation of this method is as follows:
Connect
Description
Connects to a session

Syntax
object.Connect arg

Remarks
The Connect method takes a string parameter that specifies how a connection is to be made. The format of the string parameter matches the format of the command line arguments to SecureCRT.

Examples:
Connect using a predefined session: crt.session.Connect("/s mysession")
Connect to ‘myhost’ on port 2345 using the Telnet Telnet is a protocol that provides an interface for communications between clients and servers. protocol and Default session parameters: crt.session.Connect("/telnet myhost 2345")
For more information about other API objects and methods, see the "Script Objects Reference" topic located in the SecureCRT Help.

Does this information help?
__________________
Jake Devenport
VanDyke Software
Technical Support
http://www.vandyke.com/support
Reply With Quote
  #3  
Old 08-03-2005, 05:29 AM
sdl sdl is offline
Registered User
 
Join Date: Aug 2005
Location: Atlanta
Posts: 6
Jake,
That tell's me everything I need to know. I did not see the object ref section when I looked in the help section earlier. Thanks!

Steve
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:45 PM.


© copyright 1995-2010 VanDyke Software, Inc.