Find the answer to your Linux question:
Results 1 to 3 of 3
Hello All I am sure this has been covered before, however I do not know which terms to sue for searching for this, so I will try and explain it. ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    2

    [SOLVED] Details on piping information into command

    Hello All
    I am sure this has been covered before, however I do not know which terms to sue for searching for this, so I will try and explain it.

    I have a program that I run at startup to connect me to my work VPN, specifically the Cisco VPN client. When running the program, it prompts me for my username and password. I would like to be able to automate the login process by piping the username and password into the program everytime it starts up (username and password cannot be passed as arguments to the program)

    Something like echo username | echo password | vpn_script

    Thanks and sorry if this is a vague description of what I am looking for
    Last edited by marker5a; 02-15-2011 at 02:03 PM.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Have a look at "expect"
    Code:
    man expect
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    2
    That is perfect, thank you!

Posting Permissions

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