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

Strange \n newlines in input buffer

Status
Not open for further replies.

richwd

Programmer
Oct 12, 2011
17
US
Hi,

I'm sending a bash command to a linux machine but the input buffer is somehow getting a "\n" inserted into it so I can't match. I can't figure out why and it's driving me crazy. Any ideas where it's comming from? you can see it right after the "img_2".

Code:
send: sending "rmdir --ignore-fail-on-non-empty "img_2819_2009"\r" to { exp4 }

expect: does "rmdir --ignore-fail-on-non-empty "img_2 \n819_2009"\n" (spawn_id exp4) match glob pattern "rmdir --ignore-fail-on-non-empty "img_2819_2009"\n"? no
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top