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!

%s

Status
Not open for further replies.

agua00

Technical User
Jul 13, 2004
5
US
DialinID is a string that the user has to enter.
so it get defined by the following


waitfor "Please enter your userid > "
transmit DialinID
transmit "$$REQ ID="`%s`" BID=* BCHSEP=OPT3^M" DialinID

currently when i run this I get nothing.

any ideas on why this is?
 
You cannot have format specifiers in a transmit statement, so that is why the referenced string is not appearing (I'm not even sure if that should compile successfully). What you can do is either use a couple different transmit statement:

transmit "$$REQ ID="
transmit DialinID
transmit "BID=* BCHSEP=OPT3^M"

or you can use the strfmt command to create a string that pulls in the value in DialinID, and then send that string with one transmit command.


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

Part and Inventory Search

Sponsor

Back
Top