Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    passing parameters into a node cli command


    hello -

    i have a linux command installed that was written in jScript/node. when i run the command at the command line, it might look like this:

    $ nodeCommand parmOne parmTwo ;

    the command then proceeds to prompt me for several other command-line responses, which would vary depending on what parmOne and parmTwo were. i would like to run this node command from a script.

    is there any way to pass the input-prompts into the command? i have tried every combination i can think of using syntax similar to this:

    echo -e <<EOF | nodeCommand parmOne parmTwo ;
    keyboardInputOne
    keyboardInputTwo
    keyboardInputThree
    EOF

    any help is appreciated. thanks in advance.
    Last edited by edwardsmarkf; 01-13-2018 at 02:34 PM. Reason: clarification

  2. #2
    -->
    looks like tcl-expect is what i needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •