Visit Jeremy's Blog.
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 11-17-2004, 07:33 PM   #1
Registered: Mar 2004
Location: Pennsylvania::USA
Distribution: Fedora Core 6
Posts: 100

Rep: Reputation: 15
Talking Postfix Install Via Script

I am trying to install postfix via a script downloading the tar.gz file and switching to the unzipped directory and what not doing the make and then the make install i have no problem up to this point works great, however when it does the make install it gets to a point when it's installing where it prompts for user input such as:

install_root: [/]
tempdir: [/root/postfix-2.0.16-20030921]
config_directory: [/etc/postfix]
daemon_directory: [/usr/libexec/postfix]
command_directory: [/usr/sbin]

you can just press enter to all these to get the defaults, but i don't know how to get my script to press enter or simply skip this part installing the defaults, like a flag or something, or something in the script itself any ideas?

Thanks, Karl
Old 11-17-2004, 11:26 PM   #2
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
You can use an expect script for this sort of thing... it waits for a specific string, then 'types' the answer you put in the script.
Old 11-18-2004, 12:05 AM   #3
Registered: Sep 2004
Distribution: Ubuntu
Posts: 109

Rep: Reputation: 15
Also, you can just redirect in a file with blank lines (or with entries you want to change).

# cat > my_settings.txt <<EOF

/etc/my_postfix   # this will be your alternate config_directory

# < my_settings.txt
Old 11-18-2004, 12:32 AM   #4
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Better yet:


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
Postfix install kkiedrowski Slackware 14 12-28-2005 04:34 PM
Postfix Install SiE Linux - Software 1 09-24-2005 02:51 AM
postfix install packages varun_saa Mandriva 1 06-28-2005 09:33 PM
Postfix->filter Script->sudo adduser lawtoncooper Linux - General 0 07-23-2004 02:12 AM
Mail script with Perl & Postfix Bladez Programming 2 02-14-2004 10:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 PM.

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
Open Source Consulting | Domain Registration