title: OMNET++: Run simulation in command line
body: <p>In my omnetpp.ini file, I have these lines describing cmdenv:</p>
  
  <pre><code>[General]
  cmdenv-express-mode = false
  cmdenv-output-file = log.txt
  cmdenv-autoflush = true
  cmdenv-status-frequency = 10000000s
  </code></pre>
  
  <p>So my outputs are redirected to a log file. To run my simulation I access to run -> run configurations -> user interface command line</p>
  
  <p>Now, I need to run the omnetpp.ini file using a server so I need to run the .ini file in command line and not using the previous steps mentioned. I followed these two solutions that I found in the mailing list but they do not work:</p>
  
  <p>1)  ./run -u Cmdenv -f omnetpp.ini </p>
  
  <p>2)  opp_run  -u Cmdenv -f omnetpp.ini </p>
  
  <p>This is what display:</p>
  
  <pre><code>HP-ProBook-650-G2:~/WorkspaceThese/Veins-4a2/examples/veins$ opp_run -u     Cmdenv -f omnetpp.ini 
  OMNeT++ Discrete Event Simulation  (C) 1992-2014 Andras Varga, OpenSim     Ltd.
  Version: 4.6, build: 141202-f785492, edition: Academic Public License --     NOT FOR COMMERCIAL USE
  See the license for distribution terms and warranty disclaimer
  Setting up Cmdenv...
  Cmdenv: redirecting output to file `/home/yosra/WorkspaceThese/Veins-        4a2/examples/veins/log.txt'...
  
  End.
  </code></pre>
  
  <p>Can someone help me to fix this issue please?</p>