Re: tab & other character in ssh



On Apr 15, 12:26 pm, suru <suraj.haj...@xxxxxxxxx> wrote:
Hi,
i m firing grep command through ssh on remote machine.
e.g. ssh -n it...@xxxxxxxxxxx grep -m 10 -H 'DEBUG' /home/it364/
VistaarTemp/VSDEFAULT/logs/UOS_10.65.18.30.tx

You need to escape those characters. Single quotes should do it:

ssh -n it...@xxxxxxxxxxx 'grep -m 10 -H \'DEBUG\' /home/it364'

Does that make more sense?
.



Relevant Pages

  • Re: ADO Error - ODBC Microsft Access Driver Toofew parameters. Expecte
    ... That handles single quotes but what about escaping double quotes plus ... any other 'illegal' characters? ... Is it practical/safe to try to escape ... Dim value As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: missing first chareacter after "
    ... I tried everything, escape, no escape... ... For some reason always two characters after = are missing. ... > the string is in between single quotes '' and not in between double ...
    (alt.php)
  • Re: PHP, mysql, and escaping characters
    ... MySQL requires only that backslash and the quote ... In addition to the qutoes, backslashes, and nulls, real escape string ... "Inserting a large value into a BLOB column is no different than ... a few characters that have special meaning in SQL or to the MySQL ...
    (comp.lang.php)
  • Re: Determine actual number of groups a user belongs to
    ... Dim intSecurity, intDistribution ... ' Escape any forward slash characters, "/", with the backslash ... All other characters that should be escaped are. ...
    (microsoft.public.windows.server.active_directory)
  • Re: huffman encoder
    ... > the function of fputc function is as follows ... char with the high bit set to indicate an "escape" code, ... the literal string that follows is of length 10 (you never ... characters that are XYZ ...
    (comp.lang.c)