From: Ken I. <fn...@ua...> - 2007-03-24 18:46:22
|
On Thu, Mar 22, 2007 at 03:26:49PM +0100, Stefaan Coene wrote: > Hi, > > I want to automate some remote commands and to do so, I want to match the > prompt of the remote server. The problem is that there is a tilde (~) in > the > prompt. No mather what I tried, I can not match the prompt. > Changing the prompt so there is no tilde in it, is no option. > > Any idea ? I don't think tilde should have any special meaning in regular expressions, but it is sometimes used as an escape character in transport protocols, e.g., ssh or the cu/tip program. If that's where it's hanging up, it may be possible to specify a different escape character, so tilde would work like an ordinary character. Or, it's usually possible to "escape" an escape character, e.g,. by using two of them instead of one. Just a guess. Ken -- Ken Irving, fn...@ua... |