<?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 wait input---submit interactive job by slurm and lsf in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/wait-input-submit-interactive-job-by-slurm-and-lsf/m-p/3824977#M24213</link>
    <description>&lt;BR /&gt;Hi, Dear all:&lt;BR /&gt;  I am new system admin of HP cluster which is running lsf over slurm.&lt;BR /&gt;   I am following the example script to submit the interactive job by this&lt;BR /&gt;&lt;BR /&gt;bsub -I -n1 -ext "SLURM[nodelist=n[14]]" srun ./hostname&lt;BR /&gt;&lt;BR /&gt;there is no problem at all. But when I run another program which need user's input on the screen, it never comes up and system wait like the following:&lt;BR /&gt;&lt;BR /&gt;Job &amp;lt;271851&amp;gt; is submitted to default queue &lt;NORMAL&gt;.&lt;BR /&gt;&amp;lt;&lt;WAITING for="" dispatch="" ...=""&gt;&amp;gt;&lt;BR /&gt;&amp;lt;&lt;STARTING on="" lsfhost.localdomain=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;the program contains the following:&lt;BR /&gt;&lt;BR /&gt;/**********************************&lt;BR /&gt;&lt;BR /&gt;   printf("Enter a line of text (&amp;lt;80 chars)\n");&lt;BR /&gt;                ch = getchar();&lt;BR /&gt;                char_count = 0;&lt;BR /&gt;                while( (ch != '\n')  &amp;amp;&amp;amp;  (char_count &amp;lt; MAXBUFFERSIZE)) {&lt;BR /&gt;                        buffer[char_count++] = ch;&lt;BR /&gt;                        ch = getchar();&lt;BR /&gt;                }&lt;BR /&gt;                buffer[char_count] = 0x00;      /* null terminate buffer */&lt;BR /&gt;                printf("\nThe line you entered was:\n");&lt;BR /&gt;                printf("%s\n", buffer);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/***************************/&lt;BR /&gt; &lt;BR /&gt;which runs fine in normal linux.&lt;BR /&gt;&lt;BR /&gt;So, am I missing something? How can I get user's input when I submit a interactive job?&lt;/STARTING&gt;&lt;/WAITING&gt;&lt;/NORMAL&gt;</description>
    <pubDate>Mon, 17 Jul 2006 13:43:30 GMT</pubDate>
    <dc:creator>proteinx</dc:creator>
    <dc:date>2006-07-17T13:43:30Z</dc:date>
    <item>
      <title>wait input---submit interactive job by slurm and lsf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wait-input-submit-interactive-job-by-slurm-and-lsf/m-p/3824977#M24213</link>
      <description>&lt;BR /&gt;Hi, Dear all:&lt;BR /&gt;  I am new system admin of HP cluster which is running lsf over slurm.&lt;BR /&gt;   I am following the example script to submit the interactive job by this&lt;BR /&gt;&lt;BR /&gt;bsub -I -n1 -ext "SLURM[nodelist=n[14]]" srun ./hostname&lt;BR /&gt;&lt;BR /&gt;there is no problem at all. But when I run another program which need user's input on the screen, it never comes up and system wait like the following:&lt;BR /&gt;&lt;BR /&gt;Job &amp;lt;271851&amp;gt; is submitted to default queue &lt;NORMAL&gt;.&lt;BR /&gt;&amp;lt;&lt;WAITING for="" dispatch="" ...=""&gt;&amp;gt;&lt;BR /&gt;&amp;lt;&lt;STARTING on="" lsfhost.localdomain=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;the program contains the following:&lt;BR /&gt;&lt;BR /&gt;/**********************************&lt;BR /&gt;&lt;BR /&gt;   printf("Enter a line of text (&amp;lt;80 chars)\n");&lt;BR /&gt;                ch = getchar();&lt;BR /&gt;                char_count = 0;&lt;BR /&gt;                while( (ch != '\n')  &amp;amp;&amp;amp;  (char_count &amp;lt; MAXBUFFERSIZE)) {&lt;BR /&gt;                        buffer[char_count++] = ch;&lt;BR /&gt;                        ch = getchar();&lt;BR /&gt;                }&lt;BR /&gt;                buffer[char_count] = 0x00;      /* null terminate buffer */&lt;BR /&gt;                printf("\nThe line you entered was:\n");&lt;BR /&gt;                printf("%s\n", buffer);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/***************************/&lt;BR /&gt; &lt;BR /&gt;which runs fine in normal linux.&lt;BR /&gt;&lt;BR /&gt;So, am I missing something? How can I get user's input when I submit a interactive job?&lt;/STARTING&gt;&lt;/WAITING&gt;&lt;/NORMAL&gt;</description>
      <pubDate>Mon, 17 Jul 2006 13:43:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wait-input-submit-interactive-job-by-slurm-and-lsf/m-p/3824977#M24213</guid>
      <dc:creator>proteinx</dc:creator>
      <dc:date>2006-07-17T13:43:30Z</dc:date>
    </item>
  </channel>
</rss>

