pipe to adop: stty: standard input: Inappropriate ioctl for device

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument


I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.










share|improve this question























  • What is this adop ?
    – steve
    Jul 7 '17 at 22:04










  • Do you have your tty configured? What is output of tty? What is your $TERM value?
    – user996142
    Jul 7 '17 at 22:09










  • @user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
    – Vijay
    Jul 7 '17 at 22:10






  • 1




    @Steve adop is an Oracle EBS application script to check status.
    – Vijay
    Jul 7 '17 at 22:11










  • Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
    – thrig
    Jul 7 '17 at 22:36














up vote
1
down vote

favorite












bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument


I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.










share|improve this question























  • What is this adop ?
    – steve
    Jul 7 '17 at 22:04










  • Do you have your tty configured? What is output of tty? What is your $TERM value?
    – user996142
    Jul 7 '17 at 22:09










  • @user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
    – Vijay
    Jul 7 '17 at 22:10






  • 1




    @Steve adop is an Oracle EBS application script to check status.
    – Vijay
    Jul 7 '17 at 22:11










  • Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
    – thrig
    Jul 7 '17 at 22:36












up vote
1
down vote

favorite









up vote
1
down vote

favorite











bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument


I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.










share|improve this question















bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument


I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.







shell terminal pipe input






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 23:09









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Jul 7 '17 at 21:55









Vijay

3728




3728











  • What is this adop ?
    – steve
    Jul 7 '17 at 22:04










  • Do you have your tty configured? What is output of tty? What is your $TERM value?
    – user996142
    Jul 7 '17 at 22:09










  • @user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
    – Vijay
    Jul 7 '17 at 22:10






  • 1




    @Steve adop is an Oracle EBS application script to check status.
    – Vijay
    Jul 7 '17 at 22:11










  • Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
    – thrig
    Jul 7 '17 at 22:36
















  • What is this adop ?
    – steve
    Jul 7 '17 at 22:04










  • Do you have your tty configured? What is output of tty? What is your $TERM value?
    – user996142
    Jul 7 '17 at 22:09










  • @user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
    – Vijay
    Jul 7 '17 at 22:10






  • 1




    @Steve adop is an Oracle EBS application script to check status.
    – Vijay
    Jul 7 '17 at 22:11










  • Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
    – thrig
    Jul 7 '17 at 22:36















What is this adop ?
– steve
Jul 7 '17 at 22:04




What is this adop ?
– steve
Jul 7 '17 at 22:04












Do you have your tty configured? What is output of tty? What is your $TERM value?
– user996142
Jul 7 '17 at 22:09




Do you have your tty configured? What is output of tty? What is your $TERM value?
– user996142
Jul 7 '17 at 22:09












@user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
– Vijay
Jul 7 '17 at 22:10




@user996142 bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
– Vijay
Jul 7 '17 at 22:10




1




1




@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11




@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11












Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
– thrig
Jul 7 '17 at 22:36




Looks like adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?
– thrig
Jul 7 '17 at 22:36










2 Answers
2






active

oldest

votes

















up vote
2
down vote













With expect you can fake a terminal to adop and then feed it input via the spawn procedure:



#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"





share|improve this answer





























    up vote
    0
    down vote













    Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.






    share|improve this answer




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f376090%2fpipe-to-adop-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      With expect you can fake a terminal to adop and then feed it input via the spawn procedure:



      #!/usr/bin/env expect
      spawn -noecho adop -status
      send "apps"
      expect -ex "Enter the APPS password"
      send "thepassword"





      share|improve this answer


























        up vote
        2
        down vote













        With expect you can fake a terminal to adop and then feed it input via the spawn procedure:



        #!/usr/bin/env expect
        spawn -noecho adop -status
        send "apps"
        expect -ex "Enter the APPS password"
        send "thepassword"





        share|improve this answer
























          up vote
          2
          down vote










          up vote
          2
          down vote









          With expect you can fake a terminal to adop and then feed it input via the spawn procedure:



          #!/usr/bin/env expect
          spawn -noecho adop -status
          send "apps"
          expect -ex "Enter the APPS password"
          send "thepassword"





          share|improve this answer














          With expect you can fake a terminal to adop and then feed it input via the spawn procedure:



          #!/usr/bin/env expect
          spawn -noecho adop -status
          send "apps"
          expect -ex "Enter the APPS password"
          send "thepassword"






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 7 '17 at 23:43









          Gilles

          522k12610401575




          522k12610401575










          answered Jul 7 '17 at 23:02









          thrig

          23.7k12955




          23.7k12955






















              up vote
              0
              down vote













              Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.






              share|improve this answer
























                up vote
                0
                down vote













                Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.






                  share|improve this answer












                  Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 8 '17 at 1:00









                  Vijay

                  3728




                  3728



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f376090%2fpipe-to-adop-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)