SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Putting a variable inside a string

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Putting a variable inside a string
Author Message
Angie (Paraguay)



Joined: 29 Dec 2004
Posts: 1

Post Putting a variable inside a string Reply with quote

I need to send a Telnet command with a variable in it.
Example: TelnetSend "inet mod user=@user_name dialup=1" (user_name is the variable)
I just couldn't find the way to do this. Can anyone help me with this?

Wed Dec 29, 2004 10:20 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Putting a variable inside a string Reply with quote

Try
TelnetSend "inet mod user=@@user_name dialup=1"
or
TelnetSend "inet mod user=\@user_name dialup=1"

@ is a special character in JAL and because of that it is treated differently from regular text.

: I need to send a Telnet command with a variable in it.
: Example: TelnetSend "inet mod user=@user_name dialup=1" (user_name
: is the variable)
: I just couldn't find the way to do this. Can anyone help me with this?

Wed Dec 29, 2004 8:43 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.