Thanks gus2000,
The separator \EOF did the trick regarding all the variables in the SSH script. Another useful info to keep in mind !
( I know, I have to be careful with the variables, BTW I'm using a longer awk command in the script and I escaped all the $ with \$ . )
But unfortunately the IF test fails again:
Quote:
|
syntax error near unexpected token `then'
|
even though "everything looks OK".
So my
MAIN question remains the IF test. In other how would I write an IF test (or a TEST cmd in general ) in ssh script without failing ?