1.Passing text to program and 2.automatic login

Chris G cl at isbd.net
Sat Nov 10 18:12:32 UTC 2007


On Sat, Nov 10, 2007 at 05:55:55PM +0100, vladak at madnet.co.yu wrote:
> 1. Is there a console command or construction that can solve my problem: I need to start program from console that asks couple times for text input.
> Can I somehow give all the inputs in one command, so the execution of program doesn't stop to ask for input?
> 
Yes, there are lots of utlities that will do this for you.  The
obvious one to try initially is bash, the program that you 'talk to'
at the command line.  You could try 'man bash' but that's not very
good as a tutorial.  Try a Google search for 'bash tutorial' or
something similar.


> 2. Without the graphical environment (only from bash) how can I set linux to login some user at startup without asking for user name and pass?

The shell (bash) isn't running at the login prompt.  When you say
"login some user at startup" when do you want this user logged in
exactly?  Whatever, it's quite difficult to do this.

-- 
Chris Green




More information about the users mailing list