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
    Linux Newbie
    Join Date
    Oct 2005
    Lakewood, WA

    Shell Scripts Answering Prompts

    I'm still a newb at writing shell scripts. I've figured out enough to make them run commands to automate things but I have a question. If I know a command will be met with a prompting question (password, yes or no to install dependancies, etc.) could I write in the script how to go about answering such prompts so if I were to run a long script it would automatically answer the questions for me?

  2. #2
    Just Joined! randomAccess's Avatar
    Join Date
    Dec 2005
    SE Europe
    I would suggest you to find a book shell programming. It originates from 1991 and it is the best I have ever seen.

    Or you can learn perl or C to easily write your own scripts.If you are absolute beginner in programming, you would need 2-3 months of 2hrs of every-day practising to get familiar with C.

    Not much, right?

Posting Permissions

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