Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start a Procomm script with arguments

Status
Not open for further replies.

TheHowler

Vendor
Nov 29, 2004
1
CA
I am not an ASPECT programmer, so forgive me for the stupid questions.

One of our customers wants us to build a program that will manage its libraries of Procomm Script. One of the function is to start the execution of the a script within a specific context.

From another (JAVA) program, I need to start a Procomm script, passing in a destination address, a userid and a password. All of which, would change everytime.

HOw can this be done?

Thanks
 
Probably the easiest thing to do is to look in the ASPECT help file for this information (it's a bit long to copy here). To find the proper page, select the Help | Script Reference menu item in Procomm, click on the Find tab, type command in the edit field, double click the Command Line Options topic, then double click the second choice in the popup dialog.

There are a couple different ways to handle your situation. If all of the connection are going to be made a set list of machines, then you can create Connection Directory entries for each of those entries. Depending on the particular connection mode you are using, you can specify a username and password (for FTP) or store the username and retrieve it via the $USERID and $PASSWORD system variables.

If you need to make connections to arbitrary systems, then you can pass the necessary variables in via the command line. On the command line that you use to launch Procomm and the script, you would include the different variables that need to be passed in. The predefined global integer i0 will contain a number equal to the number of passed parameters, which can be found in the predefined global string variables starting with s0 and ending at s9 (so up to 10 values can be passed).


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top