title: bash script to launch freerdp with php
body: <p>I will launch a bash scrip for php.
  the echo of my bash displays the correct code syntax but does not launch ...</p>
  
  <pre><code>#!bin/bash  
  var1=$1
  var2=$2
  config=$("xfreerdp /v:server.domain.tld /u:$1 /p:$2 /load-balance-info:\"tsv://ms terminal services plugin.1.programmes_remot\")
  eval "$config"
  </code></pre>
  
  <p>I turn your senses after my php code</p>
  
  <p>system("/var/www/test/./script.sh $var1 $var2");</p>
  
  <p>I just tested the method 2 no error but its not launch xfreerdp this is what I put</p>
  
  <pre><code>$cmd='xfreerdp /v:server.domain.tld /u:'.$var1.' /p:'.$var2.' /f /cert-igore -menu-anims /network:lan  load-balance-info:"tsv://MS Terminal Services Plugin1.Programmes_Remot"';
  exec('export display=guilinuxbox:0.0 $cmd');
  </code></pre>
  
  <p>but this does not launch</p>