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

expect script - cancatinate a string

Status
Not open for further replies.

davidbelarus

Programmer
Oct 21, 2011
26
0
0
US
i got a string "A" and i want to add string "B" to end of it.
This will make a full command line i can place on minicom prompt.

 
i figured it out.
append just cancatinates.

example


set bootsection1 "newsstuff boot -z -elf peter.kernel: /' newstuff"
set bootsection2 "root=/dev/mtdblock3 rootfstype=squashfs resmem=75m@155m(cdi) resmem=26m@230m(grmem)\""

append bootsection1 $bootsection2
append bootsection1 "\""

#you have youself a custom string.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top