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

expect script - masking quotes "

Status
Not open for further replies.

davidbelarus

Programmer
Oct 21, 2011
26
US
Gentlemen

I have strings with special characters in them " to be exact.
how do i get the string to record correctly at a "set" "send" "put" statment

#this did not work, the quotes screwed it up.
set bootline "boot -elf -z $tftpserver:machine1-pac.initrd "root=/dev/ram0 rootfs=xxx calmem=88m"
 
i know the answer to this.
use \ before the "
example set value " \" coolbeans \"

by the way, what do i get for helping someone out like that?
david
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top