Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
tcap.jpg I just run "./tcap" and it starts a small application then i pass an integer command (1, 2, 3 etc...) depends on type of action i want to perform. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8

    tcap.jpg

    I just run "./tcap" and it starts a small application then i pass an integer command (1, 2, 3 etc...) depends on type of action i want to perform. For example 1 for "Output mode options", 2 for "Maintenance Options", 3 for "Entitlements" and so on. You can also see in the attach image.
    For sample i am also attaching screen which appears when i pass input integer 1.
    tcap-input-1.jpg

  2. #12
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    okay, so it looks like it reads standard input from the terminal, i guess? I'm not sure this would work if it is a complicated menu, i.e., nested menus. Does this work?
    Code:
    echo 1|tcap

  3. #13
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8
    Yes exactly, once you are running the application you can pass standard input from the terminal using keyboard.
    I did try as you suggested. See below:
    Code:
    [NameofHost ~]$ echo 1|tcap
    -bash: tcap: command not found
    [NameofHost  ~]$ echo 1| ./tcap
    term_init:tcgetattr: Invalid argument

  4. $spacer_open
    $spacer_close
Page 2 of 2 FirstFirst 1 2

Posting Permissions

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