View Full Version : 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
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 (http://www.vandyke.com/support/crt/006.html)
Example perlscript code:
Login.pl (http://www.vandyke.com/support/crt/scripts/login_pl.txt)
ConnectMultiSession.pl (http://www.vandyke.com/support/crt/scripts/connect_multisession_pl.txt)
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,
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
vBulletin v3.5.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.