Topic
  • 2 replies
  • Latest Post - ‏2013-04-17T10:35:54Z by Jotac
Jotac
Jotac
82 Posts

Pinned topic FORCE APPLICATION vs " !

‏2013-04-16T14:16:46Z |

Hi all!

Linux, bash, DB2 v9.7.0.7

it's a bit o.t. anyway with my brain looping on it I can't find a solution :-/

I would like to execute the following command :

ssh -t <HOSTNAME> "su - <USER> -c 'db2 "force application (<N>) mode async"'"

but I get the error -bash: syntax error near unexpected token `('

I do not know exactly how to use the single or double quote so I'm asking help to have this command running

thank you ciao

GIovanni

 

 

  • nivanov1
    nivanov1
    231 Posts

    Re: FORCE APPLICATION vs " !

    ‏2013-04-16T19:38:23Z  

    I bet you'd need to quote double quotation marks within the outer double quotation marks.

  • Jotac
    Jotac
    82 Posts

    Re: FORCE APPLICATION vs " !

    ‏2013-04-17T10:35:54Z  
    • nivanov1
    • ‏2013-04-16T19:38:23Z

    I bet you'd need to quote double quotation marks within the outer double quotation marks.

    Done! 1 penny! :-)

    Yesterday I tried almost any combination of quotation.... :-/

    With fresh mind I found that the command work as I want in this way :

     ssh -t <hostname> "su - <user> -c 'db2 \"force application(nnnn) mode async\" ' "

    ciao

    GIovanni