<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: When ever i press the button it need to run a shell command  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703264#M109264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Carlos. I have used&lt;STRONG&gt;&amp;nbsp;call_usermodehelper &lt;/STRONG&gt;function to call shell command in kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 06:24:19 GMT</pubDate>
    <dc:creator>aravinthkumarja</dc:creator>
    <dc:date>2017-10-17T06:24:19Z</dc:date>
    <item>
      <title>When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703258#M109258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using iMX6 sabresd board and Android 6 platform. Any one of gpio i configured as button.&lt;/P&gt;&lt;P&gt;When ever the user press the button, i need to run a shell command(or shell script) on board.&lt;/P&gt;&lt;P&gt;How can i do this .?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703258#M109258</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2017-10-11T12:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703259#M109259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the following link you will find the code for a .ko module which handles a GPIO interrupt and the device tree configuration required for this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/458270"&gt;Issue with configuring GPIO as an interrupt - i.MX6Q&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the shell command you can just use a system call E.g. sytem("command");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703259#M109259</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-10-11T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703260#M109260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; For&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #000000;"&gt;system&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;function what library i have to use in imx6 kernel.?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Aravinth&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 07:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703260#M109260</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2017-10-12T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703261#M109261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is stdio.h, this is a general C question, you can find a lot of information if you Google "linux shell command in c program" or "linux c system function".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703261#M109261</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-10-12T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703262#M109262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi carlos,&lt;/P&gt;&lt;P&gt;I have used &lt;STRONG&gt;system&lt;/STRONG&gt; function in normal c application. But in kernel code we can't add stdio.h. So i'm not able to use &lt;STRONG&gt;system&amp;nbsp;&lt;/STRONG&gt;function in kernel.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 03:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703262#M109262</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2017-10-13T03:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703263#M109263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make an application that communicates with the kernel module. So the module will use copy_to_user function to tell the applications that a button was pressed and the application will execute the shell command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703263#M109263</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-10-16T20:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: When ever i press the button it need to run a shell command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703264#M109264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Carlos. I have used&lt;STRONG&gt;&amp;nbsp;call_usermodehelper &lt;/STRONG&gt;function to call shell command in kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 06:24:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/When-ever-i-press-the-button-it-need-to-run-a-shell-command/m-p/703264#M109264</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2017-10-17T06:24:19Z</dc:date>
    </item>
  </channel>
</rss>

