Pete Forman writes:
> We should not be looking at return codes to assess test's
> abilities.
>
> How about something like
>
> test / -nt / 2>&1
>
> That will be an empty string for success (supports -nt). Resist
> the temptation to wrap it in `` as that will assess a sub-shell.
> This should work:
>
> (rcp-send-command ... "test / -nt / 2>&1; echo X")
>
> ... (string-match "^X$" ...) ; => success
Sorry about following up my own post but I seem to be duplicating what
rcp-wait-for-output is doing. This should suffice:
(rcp-send-command ... "test / -nt / 2>&1")
... (string-match "" ...) ; => success
--
Pete Forman | Disclaimer: This posting is originated by
Western Geophysical | myself and does not represent the opinion
[EMAIL PROTECTED] | of Baker Hughes or its divisions.
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Edward J. Sabol
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Edward J. Sabol
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Francesco Potorti`
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323' Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Pete Forman
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
- Re: cvs ci 'rcp/lisp rcp.el,1.322,1.32... Kai Gro�johann
