<?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 Using another user to run a script yields error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205598#M167464</link>
    <description>Hi&lt;BR /&gt;I had created this script owned by root that will execute a script owned by another user. if I execute the script on the command prompt, everyting goes through. But if I use nohup to execute the script at the backend. It returns the error - &lt;BR /&gt;Cannot start job control&lt;BR /&gt;stty: : I/O error.&lt;BR /&gt;My script (owned by root) is as follows - &lt;BR /&gt;su - testusr1 -c "/home/testusr1/test_print.sh"&lt;BR /&gt;Can someone please advise me? Thanks!</description>
    <pubDate>Mon, 01 Mar 2004 07:41:48 GMT</pubDate>
    <dc:creator>Yeo Khian Wei</dc:creator>
    <dc:date>2004-03-01T07:41:48Z</dc:date>
    <item>
      <title>Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205598#M167464</link>
      <description>Hi&lt;BR /&gt;I had created this script owned by root that will execute a script owned by another user. if I execute the script on the command prompt, everyting goes through. But if I use nohup to execute the script at the backend. It returns the error - &lt;BR /&gt;Cannot start job control&lt;BR /&gt;stty: : I/O error.&lt;BR /&gt;My script (owned by root) is as follows - &lt;BR /&gt;su - testusr1 -c "/home/testusr1/test_print.sh"&lt;BR /&gt;Can someone please advise me? Thanks!</description>
      <pubDate>Mon, 01 Mar 2004 07:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205598#M167464</guid>
      <dc:creator>Yeo Khian Wei</dc:creator>
      <dc:date>2004-03-01T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205599#M167465</link>
      <description>Do you have any interactive steps in user's script? Also make sure that all required variables are put in user's script. One way to do it is putting env at the start os the user's script.&lt;BR /&gt;&lt;BR /&gt;You can run script as sh -vx ./script and check where it is failing.</description>
      <pubDate>Mon, 01 Mar 2004 07:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205599#M167465</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-01T07:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205600#M167466</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;would it be a big deal to post the script as attachment?&lt;BR /&gt;Is the script trying to change attributes of the tty?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Mar 2004 08:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205600#M167466</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-01T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205601#M167467</link>
      <description>Hi&lt;BR /&gt;I had executed the script using the sh -vx command. I do not see any errors coming out from that. The only error that I see is when I used the nohup. My script is very simple, since it's for testing purpose, it is doing a single print statement thats all.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Khian Wei</description>
      <pubDate>Tue, 02 Mar 2004 00:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205601#M167467</guid>
      <dc:creator>Yeo Khian Wei</dc:creator>
      <dc:date>2004-03-02T00:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205602#M167468</link>
      <description>The su - is reading the testusr1 .profile and is causing your problem the stty setting is trying to talt to a terminal&lt;BR /&gt;&lt;BR /&gt;If you are not worried about the environment&lt;BR /&gt;su testusr1 -c "/home/testusr1/test_print.sh" should work.&lt;BR /&gt;If you need the user env.  set the need ones in the test_print.sh.&lt;BR /&gt;&lt;BR /&gt;Rory</description>
      <pubDate>Tue, 02 Mar 2004 11:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205602#M167468</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2004-03-02T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using another user to run a script yields error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205603#M167469</link>
      <description>I had run into same and found what Rory mentioned as part of the problem. The rest was taken care of when I placed the required environment variables in the script being executed.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 02 Mar 2004 14:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-another-user-to-run-a-script-yields-error/m-p/3205603#M167469</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-03-02T14:29:06Z</dc:date>
    </item>
  </channel>
</rss>

