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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch ID Statement Script

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I know nothing of aspect and need to use it on a one-time only basis. I am having difficulty finding information, and according to the threads I've read there is little out there regarding this language. I am trying to write a small script which upon login to a remote server will send the Batch ID. The line that needs to be read by the server begins $$REQ ID=XXXX BID='XXXX'.
How can I go about sending this info the computer. Simply inserting it between the proc main and endproc commands is insufficient and I receive a compiler error concerning the "$$" symbols.

Any help would be appreciated!
 
To send a string to the remote system, you need to use the transmit command. It's format is this:

transmit "text string" or
transmit sVariableName

Are you reading this ID from a file, or is the user entering it somehow?
 
I'm actually connecting to a server to receive a file. In order to do so they require a userid and password which I input and the referenced text (the system does not prompt you for this information). If the text is not sent then the file cannot be received.

I have used your above suggestion and the script has compiled cleanly, although it doesn't seem to solve the issue. (i.e. it must not be transmitting the info properly to the server).
 
Will the ID be the same each time you are connecting to the server? If so, you could use Procomm's Script Recorder to record what you type in response to the different prompts from the system, then replay the exchange in the future with a script. To enable the Script Recorder, select the Tools | Scripts | Start Recorder menu item. Procomm Plus will now monitor all incoming data and your outgoing responses to that data. Start performing the tasks (keyboard-based only!) that you want Procomm Plus to record. Once done, select the Tools | Scripts | Stop Recorder menu item. You will be prompted to save your recorded script; some editing of the script may be necessary. When you view your script, you will see that it is composed of waitfor/transmit commands. If all looks well, compile your script and see if it executes as expected.
 
The problem is that the server only prompts for username and password. Unfortunately it does not prompt for this information. I plan on contacting the server administrator to determine if they have a solution to this problem considering they are the ones requiring it. I will post if the issue is resolved. Thanks for you time and if you have any other suggestions please let me know.
 
SUSMC

Is this a Unix System you are Calling ? If so, are you required to Login with a Username and Password ?? At that Point you request a DownLoad of a File ?? Is it Binary or Text File ??

Hank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top