Ubuntu :: Bash Script Won't Run From Menu?
Apr 13, 2011
Wrote a bash script that works fine when run in a terminal... Tried to make a shortcut from the application menu to it, but when I run it from there, I get "There was an error creating the child process for this terminal."
View 2 Replies
ADVERTISEMENT
Mar 19, 2010
I am trying to make a bash menu that loops with options but it does not work as I want:
Code:
I want to make it read an option and do the action then return to menu.
View 2 Replies
View Related
Feb 7, 2011
Im constructing a menu for a program using case. I have all my normal input options mapped out but i want to have a * ) option so that if something else is inputed, it displays "Incorrect input" and then resumes the normal menu function. How do I do this? Ideally, I'd like it to display "Incorrect Input" and then accept more input for the menu.
View 2 Replies
View Related
Apr 12, 2011
I've written a bash shell script (code provided below) that gives the user 4 options. However I'm having a little trouble with the code. Right now when they select option 3, to show the date.It loops over and over again.I have to close the terminal window to stop it because it's an infinite loop. How would I prevent this? Also quit doesn't seem to be working either.
#!/bin/bashe
echo -n "Name please? "
read name
echo "Menu for $name[code]............
View 2 Replies
View Related
May 5, 2010
I am envisioning a dialog menu with 2 sections, the top 2/3 a menu, then the bottom 1/3 is a message box. When you highlight a menu item it gives you a description of what it does in the message box. However I am not sure it is possible. Can this be done in BASH?
View 2 Replies
View Related
May 29, 2011
I have a file called list.txt with on word on each line that changes in length. I'd like to make a menu, each line being its own choice. I pieced together most of it the only thing missing is a failsafe for typing a number out of range
Code:
#!/bin/bash
p=`cat list.txt | awk '{print$1}'`
[code]....
View 2 Replies
View Related
May 23, 2011
Im wondering how to create a menu in c like bash's select. I imagine there is already something out but I don't know what it would be. Im a c newb but been scripting for a long time now and trying to pick up a little c.this would be what I am looking to display:
Code:
1) option 1
2) option 2
3) option 3
Make a selection:obviously 1,2,3 would be the only valid selection and anything else would say invalid or something like that.
View 2 Replies
View Related
Jan 25, 2011
The script starts first a program I wrote earlier that collects specific data from 3 online csv files and write a summary csv file called /Tribalwars/request.csv . The seperator used is ;
the csv file looks like this but can be any number of rows (but not to many mostly 3 - 5)
Title1;tile2;...;title15;
B1;B2;...;B15
C1;C2;...;C15
D1;D2;...;D15
Now the next part of the script, and that is what I want to change, asks me to manually input some data I have to copy paste from the csv file just created. I mean if i choose to continue to do my calculations for city 2, I need to copy-paste C1 for the first variable 'cityname' , copy-paste c2 for the second variable 'xxx',copy-paste C3 for the third variable 'yyy',copy-paste C15 for the fourth variable 'points'
Then it starts new calculations etc, witch only these variables.
Now could it be possible to make a menu from the csv file with only the according cells on the screen and that I only have to choose a row from the menu?
View 5 Replies
View Related
Jul 31, 2011
I wrote bash script that uses zenity and a choice to install various programs, tested it and it works, but only when I call it from terminal. I wanted to add it in gnome main menu. The script is /home/eee/zenity.sh. In accessories I added an entry with command:
Code:
/home/eee/zenity.sh
, but since there is no terminal it starts zenity, but it does not work. I have also tried
Code:
gksu gnome-terminal -x /home/eee/zenity.sh
[Code].....
View 4 Replies
View Related
May 15, 2009
Is it possible to create a text based menu layout in bash were it is possible to browse through. The menu list should look something like this:
----------------------------------------
user: root
colour: blue
number: 4
animal: dog
----------------------------------------
At the start the cursor should blink at the r from root so that text can be entered. When pressing the enter the cursor should go to the b from blue and so on. the imported thing is that all the text is visible also beyond the position from the cursor.
View 4 Replies
View Related
Jan 19, 2011
I would like to create a bash menu script for my home server For instance if i were to type ./script It would then bring up 3 options
a. Create a backup
b. Restore files from a backup
c. Quit
If you were to select a or b it should then ask you were you want to backup or restore from. And if i were to type in an incorrect letter i should get an error and take me back to menu. I have attepmted this a view time now and have magaged to get the menu up using parameters
View 9 Replies
View Related
Jul 26, 2010
I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....
I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).
View 1 Replies
View Related
Jun 5, 2011
I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:
-bash: ls: command not found
Even the basic commands don't work... just cd <directory> and those things works
View 9 Replies
View Related
Jul 8, 2010
When I edit my applications menu to to hide games they stay on the menu. Everything else hides when prompted.
View 6 Replies
View Related
Jul 12, 2010
I installed the Global Menu Bar applet for my top panel, thus removing the menu bar from most, if not, all of my apps on Ubuntu. I removed the applet, mainly because of how God-Awful and inconvenient it was. Now, I don't have any menu bars on my apps!
View 3 Replies
View Related
Mar 16, 2010
i found a tutorial to auto-mount ntfs drivers at kubuntu start
[URL]
but i can't find the K menu > System Settings > Advanced Tab > Disk & File Systems menu.it disappeared in kubuntu 9.10?
View 2 Replies
View Related
Jul 2, 2010
I'm brand new to Linux and Ubunto 10.04.On the menu bar at the top of my desktop I seem to have attracted some kind of bug!The Log Out Symbol repeats itself across almost the entire menu bar and I cannot remove it. If I remove other buttons from the menu the space is immediately replaced by more Log Out Buttons.When I hover on the icon I get the message 'Log out of this session to log in as a different user' and when I right-cllick to click on 'Remove from Panel' or 'Move' nothing happens.It is not possible to right-click on another part of the menu bar to change the Menu Properties.
View 1 Replies
View Related
Jul 8, 2010
I'm looking for a way to hide the icons in the Gnome menu bar.
The only thing i've found is the gconf-editor and unchecking /desktop/gnome/interface/menus_have_icons, but that only affects the System menu and not Applications and Places...
Example:
Must be like:
How to disable them ?
I'm running Ubuntu 10.04LTS with Gnome 2.30
View 5 Replies
View Related
Aug 5, 2010
I've been using Ubuntu for about 5 years now. I just installed it on one of my neighbors computers.I tried deleting an applet from the top menu bar and the entire menu bar disappeared. I click on the add new menu bar and it just throws something up on the side. I'm using 10.04. I never had this problem before.
View 8 Replies
View Related
Oct 14, 2010
i am using the global menu applet on ubuntu desktop edition. almost all of the apps shows its main menu on the global menu applet, but lyx doesn't. am i the only one experiencing this problem? i am using updated maverick.
View 2 Replies
View Related
Feb 4, 2011
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 3 Replies
View Related
Nov 29, 2010
I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
View 6 Replies
View Related
Jul 17, 2010
below are the details of my system. I have bash as my current shell, some really common commands aren't working.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])
Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$
[Code]....
View 13 Replies
View Related
Jan 24, 2010
simple bash code:
Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do
[Code]...
How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!
View 10 Replies
View Related
Jan 7, 2010
I have installed Hamfax via apt which shows up in usr/share/Hamfax.I also installed hamradiomenus from apt but there is no ham radio menu and no sign of Hamfax anywhere in any menu.I checked Main Menu editor and there is a generic entry for ham radio which is italicised showing there's no entries under it.How do I get Hamfax on a menu? I remember adding Hamfax on my old desktop PC and it was immediately available in accessories. How do I enable it to a menu?
View 1 Replies
View Related
Feb 15, 2010
9.10 has no menu.lst file and hitting ESC to does not bring up the grub menu. How can we set bootup options or boot an alternate kernel? I would really like to set the resolution at boot time so that my console (Ctrl-Alt-F5, for example) has 80 columns instead of 40. (What a stupid default, gigantic Commodore-64-like text!) It would also be nice if the Login screen could be set to the resolution that I want.
In previous releases, there were ways to do this. In 9.10, I haven't been able to figure out how.
Is there a document explaining all of the radical changes?
View 5 Replies
View Related
Apr 29, 2010
I want to edit the GRUB menu in ubuntu but Menu.1st is missing.When I open the /boot/grub.cfg from terminal I cant save it.
View 7 Replies
View Related
May 6, 2010
I'm using 9.10 Karmic. Is it possible to add a Main Menu to my right click menu?
View 4 Replies
View Related
May 8, 2011
Netbeans menu doesn't go on global menu. It stays in application. Well, OK, I can live with thatAfter dragging anyting inside Netbeans (windows, menus, ETC), Unity Launcher stops dodging windows and autohiding. It just sits on the screen. It starts to behave normally only after I restart Netbeans. Now- that's pretty annoying.EDIT: Even worse: If I exit Netbeans during debugging session, I must exit Firefox as well before launcher starts behaving normally again. Now, that's entirely unacceptable. Good enough reason to remain on "Ubuntu Classic" (what's left of Gnome that is), and eventually switch do different distro or even... ungh... WAMP.
View 5 Replies
View Related
Feb 4, 2009
I just found some cool icons and I want to try them to see if they match my theme but I do not know how to change the Icon.
View 2 Replies
View Related