Timeline for Pass the background flag (&) through expect and ssh
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Jun 29, 2011 at 20:06 | comment | added | Doug Stephen | gotcha. I understand what you're saying now. | |
| Jun 29, 2011 at 20:05 | comment | added | Caleb | @Doug: It would break in the same way that geekosaur's solution broke. It's not that one or the other format isn't working inside expect, it's that not quoting/escaping the space meant the data got sent as two separate arguments instead of one and expect had different data to work with. I only escaped the space to have the same affect as geekosaur's answer which I assumed would work. It's only when you said it failed that I thought of mentioning the alternative. | |
| Jun 29, 2011 at 20:02 | history | edited | Caleb | CC BY-SA 3.0 |
deleted 1 characters in body
|
| Jun 29, 2011 at 20:02 | comment | added | Doug Stephen | Didn't notice you were escaping the space as well. While I don't think this would make the command not work, it's not necessary. Reflected this in a reply to your comment below too. | |
| Jun 29, 2011 at 19:42 | vote | accept | Doug Stephen | ||
| Jun 29, 2011 at 19:41 | history | edited | Caleb | CC BY-SA 3.0 |
added 243 characters in body
|
| Jun 29, 2011 at 19:38 | comment | added | Doug Stephen | I know about key based authentication, but you'll notice in my question I said that there are reasons that I'm not at liberty to discuss that prevents me from using keys. I'm pretty familiar with setting up keys for SSH logins and I wish I could just use that. | |
| Jun 29, 2011 at 19:35 | history | answered | Caleb | CC BY-SA 3.0 |