title: Getting unmatched ". on a simple csh ssh script
body: <p>I'm trying to connect to a set of machines using foreach to check whether or not a file exists, however I keep getting the unmatched " error, I've tried plenty of ways and plenty of escape character to try to make it work... however I still get the error, here is the code:</p>
  
  <pre><code>foreach i ( machineA machineB machineC machineD machineE )
  foreach? echo $i":"
  foreach? ssh -q $i "\[ -f /etc/init.d/myprog \] \&amp;\&amp; echo \"File exists\" \|\| echo \"File does not exist\""
  foreach? end
  machineA:
  Unmatched ".
  </code></pre>
  
  <p>Probably something silly, but I've been trying to make it work over the last couple of hours with no success... </p>
  
  <p>The line I'm trying to execute remotely through ssh is this:</p>
  
  <pre><code>[ -f /etc/init.d/myprog ] &amp;&amp; echo "File exists" || echo "File does not exist"
  </code></pre>
  
  <p>And also tried this way (amongst several other ways):</p>
  
  <pre><code>foreach? ssh -q -o "BatchMode=yes" $i "[ -f /etc/init.d/netbatch ]" &amp;&amp; echo \"File exists\" \|\| echo \"File does not exists\""
  </code></pre>
  
  <p>Thanks a lot for any help!!!</p>