Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-31-2006, 08:26 AM   #1
LQ Newbie
Registered: May 2006
Distribution: Fedora Core 5 // 2.6.15 kernel
Posts: 8

Rep: Reputation: 0
Prompt user for information immediately after login?

I've created a LiveCD using RYLX that holds a copy of sflowtool 3.9. What I need to do is auto-run a program that will prompt the user for a couple pieces of information (hostname/ip of target machine, etc), and then run sflowtool with -(answer1) (answer2) and so forth. Basically automate the process of running the executable with their settings.

What would be the best way to go about this? Any help would be GREATLY appreciated, I've never had a lot of luck getting things to auto-run in Linux.
Old 05-31-2006, 09:59 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
1. Does the program have any options or settings to make it non-interactive (ie auto-run)?
2. If it doesn't, you can always try writing a script that "prints" commands to the stdin (standard input, where the user normally types his information via the keyboard) to the program in question.
ie something like:
cat your_settings_file | your_program
(where "your_settings_file" contains each response the user is supposed to give via the keyboard)
for starters.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to login because no login prompt DX2 Linux - General 1 05-25-2005 12:33 PM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 11:01 AM
login prompt - can only login as root mindfriction Linux - Newbie 6 09-03-2004 07:14 AM
Executing startx immediately after login Ratwod Slackware 5 01-09-2004 01:12 PM
how to issue a message prior to login prompt for a particular user mtest Programming 19 10-30-2003 06:41 AM

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration