Re: [expert] menu in bash script

2003-11-15 Thread Artemio
Thanks all for the help and direction. You are all very kind. Always glad to help! :-) The case why I asked for this help is that we have a project to install Linux servers on several locations with the same/very similar settings. Unfortunately, the hardware is varied between locations so

Re: [expert] menu in bash script

2003-11-15 Thread Kwan Lowe
The case why I asked for this help is that we have a project to install Linux servers on several locations with the same/very similar settings. Unfortunately, the hardware is varied between locations so 'ghosting hdd is not the solutions. I wrote the following script to do something similar.

[expert] menu in bash script

2003-11-14 Thread Fajar Priyanto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy /etc/wvdial.conf 3. Make directory /var/log/nullmailer 4. Do all of above == Could you

Re: [expert] menu in bash script

2003-11-14 Thread Artemio
Fajar Priyanto wrote: Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy /etc/wvdial.conf 3. Make directory /var/log/nullmailer 4. Do all of above == Could you please give

Re: [expert] menu in bash script

2003-11-14 Thread Clément Ménier
Le Vendredi 14 Novembre 2003 15:43, Fajar Priyanto a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy /etc/wvdial.conf 3.

Re: [expert] menu in bash script

2003-11-14 Thread Kwan Lowe
Fajar Priyanto wrote: Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy /etc/wvdial.conf 3. Make directory /var/log/nullmailer 4. Do all of above == Could you please give

Re: [expert] menu in bash script

2003-11-14 Thread Jack Coates
On Fri, 2003-11-14 at 10:46, Kwan Lowe wrote: Fajar Priyanto wrote: Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy /etc/wvdial.conf 3. Make directory

Re: [expert] menu in bash script

2003-11-14 Thread Kwan Lowe
but if you learn dialog, then you can readily port the same script to xdialog, which is keen :-) Yes -- xdialog has effectively replaced 90% of my tcl/tk needs. It's still not a complete substitute, but the ease of generating interfaces makes up for its inflexibility. -- The Digital Hermit

Re: [expert] menu in bash script

2003-11-14 Thread Steffen Barszus
Am Freitag, 14. November 2003 20:13 schrieb Jack Coates: On Fri, 2003-11-14 at 10:46, Kwan Lowe wrote: Fajar Priyanto wrote: Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy

Re: [expert] menu in bash script

2003-11-14 Thread jipe
On Fri, 14 Nov 2003 21:43:50 +0700 Fajar Priyanto [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear All, Can we make menu in bash script just like in DOS' batch file? Such as: === [Menu] Pls select what you want to do: 1. Copy /etc/dhcpd.conf 2. Copy

[expert] Color with echo in shell script (was: [expert] menu in bash script)

2003-11-14 Thread Jean-Pierre Denis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, jipe wrote: snip menuA[1]=$(echo -e \e[1;34;46m-1-\e[0m\tCopy /etc/dhcpd.conf) I would like to get more details on how to display color in shell script and on terminal. I understand that 34 and 46 are the color. How does this actually

Re: [expert] Color with echo in shell script (was: [expert] menu in bash script)

2003-11-14 Thread jipe
On Fri, 14 Nov 2003 16:24:29 -0500 (EST) Jean-Pierre Denis [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, jipe wrote: snip menuA[1]=$(echo -e \e[1;34;46m-1-\e[0m\tCopy /etc/dhcpd.conf) I would like to get more details on how to display color in

Re: [expert] Color with echo in shell script (was: [expert] menu in bash script)

2003-11-14 Thread Adolfo Bello
On Fri, 2003-11-14 at 18:06, jipe wrote: On Fri, 14 Nov 2003 16:24:29 -0500 (EST) Jean-Pierre Denis [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, jipe wrote: snip menuA[1]=$(echo -e \e[1;34;46m-1-\e[0m\tCopy /etc/dhcpd.conf) I would

Re: [expert] menu in bash script

2003-11-14 Thread Fajar Priyanto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 14 November 2003 10:27 pm, Artemio wrote: It's very easy with case operator. Here is the source (is is also attached - just save it, chmod +x menu.sh and launch it ./menu.sh): Thanks all for the help and direction. You are all very