# How to run sample application "commandLine"

**URL:** <https://forum.legato.io/t/how-to-run-sample-application-commandline/152>\
**Category:** Legato Application Framework\
**Created:** [June 23, 2015, 10:54am UTC](https://forum.legato.io/t/how-to-run-sample-application-commandline/152 "2015-06-23T10:54:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 23, 2015, 10:54am UTC](https://forum.legato.io/t/how-to-run-sample-application-commandline/152/1 "2015-06-23T10:54:38Z")

</div>

I tried to type :

* * *

root@swi-mdm9x15:/opt/legato/apps/commandLine# execInApp commandLine /bin/fileIn  
fo -x

- execInApp: at argument 3: Unexpected argument.  
Try ‘execInApp --help’.

* * *

root@swi-mdm9x15:/opt/legato/apps/commandLine# execInApp commandLine /bin/fileIn  
fo x  
Unrecognized command: ‘x’  
root@swi-mdm9x15:/opt/legato/apps/commandLine#

* * *

From the log in Developer Studio, the application is printing out “fileInfo.c \_fileInfo\_exe\_COMPONENT\_INIT() 430 | Scanning.”  
So the application is running fine.  
Please let me know how to pass the argument to the application.  
Also please give some example on using this application.  
Thx!!!

---

<div class="post-metadata">

**Author:** ![ajiang](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@ajiang](https://forum.legato.io/u/ajiang)\
**Post date:** [August 11, 2015, 9:48pm UTC](https://forum.legato.io/t/how-to-run-sample-application-commandline/152/2 "2015-08-11T21:48:22Z")

</div>

Hi,

There was a bug that has been fixed and will be in the next release. The bug was that execInApp was interpreting command line arguments meant for the application as its own.

Thanks,

Alex
