Search Results

Search: Posts Made By: malfolozy
2,617
Posted By malfolozy
Hello, the code does'nt seems to be working as it...
Hello, the code does'nt seems to be working as it doesn't change anything in the file.


whiptail --title "Abc" --menu "Your choice" 16 78 5 \
"1)" "ONBOOT" 2>somefile

CHOICE=$(cat somefile)...
2,617
Posted By malfolozy
Hello, Basically, the file that i wanted to...
Hello,

Basically, the file that i wanted to edit is the /etc/sysconfig/network-scripts/ifcfg-eth0. Therefore, there are more than just one thing inside.

Regards,

Malfolozy
2,617
Posted By malfolozy
Replace the words in the file to the words that user type?
Hello,

I would like to change my setting in a file to the setting that user input.

For example, by default it is

ONBOOT=ON

When user key in "YES", it would be

ONBOOT=YES
...
5,351
Posted By malfolozy
Ahh!!!! It works! So, the only way to do it...
Ahh!!!! It works!

So, the only way to do it is to change the position. got it!!

Thanks a lot for guiding me through!! Appreciate it!!


Thanks,

Malfolozy
5,351
Posted By malfolozy
Hello, It doesn't work, because my CHOICE...
Hello,

It doesn't work, because my CHOICE read the first field which is "1." instead of "eth0".

I use


2>somefile


and it read the first field.

How do i go about doing it so that...
5,351
Posted By malfolozy
Hmm, i don't get what you mean, sry my english is...
Hmm, i don't get what you mean, sry my english is bad.

So, i went to try something like this,


CHOICE=$(cat somefile)

case $CHOICE in

"$(cat somefile)") whiptail --msgbox "$(ifconfig...
5,351
Posted By malfolozy
Yay! The first code works!! After that, how...
Yay! The first code works!!

After that, how do i go about doing the code for the choices?

I forward the choice chosen by the user to a file "somefile" by using this

2>somefile

and this is...
5,351
Posted By malfolozy
Hello Scrutinizer, After i try it in my...
Hello Scrutinizer,

After i try it in my code,

the output are as such

http://i57.tinypic.com/mm3pxs.jpg

Is there anw to remove the duplicate into something else like number for the...
5,351
Posted By malfolozy
Hi Corona668, My system is Linux, Red hat. ...
Hi Corona668,

My system is Linux, Red hat.

I am working on the Whiptail script, not Select. Therefore, its kinda hard to make a dynamic menu as a beginner. Guide me pls,

Thanks,
...
5,351
Posted By malfolozy
Dynamic menu selection? Help..
Hi guys, i would like to create a program that allow user to show the information of certain thing such as network card.

I would like the menu to be dynamic, for example:
my computer system have...
19,398
Posted By malfolozy
Stacked as one choice
Stacked as one choice
19,398
Posted By malfolozy
Alright got it. The following code doesn't...
Alright got it.

The following code doesn't seem to be working

#!/bin/bash
clear

whiptail --msgbox "Entering networking sub-menu" 20 78

CHOICE=$(
whiptail --title Networking --menu...
19,398
Posted By malfolozy
Got it! After change it to the code that you...
Got it!

After change it to the code that you posted, it works!

However, i still not quite sure about this line

2>somefile

Is it taking the variable 2 answer and copy to a file named...
19,398
Posted By malfolozy
Tried. it still doesnt work :(
Tried. it still doesnt work :(
19,398
Posted By malfolozy
Bash Script - Whiptail Menu Help!
Hello,

Been trying to build a menu with whiptail lately. However, my code doesn't seems to be working even though when i compared to other similar code they looks the same.


#!/bin/bash...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 01:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy