9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I installed CentOS 8 with Gnome 3.28.2 and I noticed that the "switch user" menu item disappeared from under the system menu of Gnome classic (Both X11 & Wayland). I checked google and this problem seems to have a history going back several releases of Gnome.
Unfortunately, I never found a... (1 Reply)
Discussion started by: bodisha
1 Replies
2. Shell Programming and Scripting
In the bash menu below if the variant that is inputted is in the format NM_004004.3:c.274G>T the below works perfectly. My question is if the variant inputted isNM_004004.3:-c.274G>T or NM_004004.3:+c.274G>T then the code as is will throw an error due to a biological issue. Is it possible to to... (1 Reply)
Discussion started by: cmccabe
1 Replies
3. Shell Programming and Scripting
hi all
i am trying to get help with writing a script using case statement to display menu as
1) Authentication log
2) System log
3) Messages
4) Dmesg
5) Boot log
Q) Exit
When selecting the menu by 1 or 2 or 3 o 4 or 5, it should display the last 10 lines of the log files,
if... (3 Replies)
Discussion started by: renegade11
3 Replies
4. Shell Programming and Scripting
EDIT : System used : Any Linux distribution.
Hello everyone,
I m having quite a headache trying to figure out why I m having a 2 columns output in the following code :
#!/bin/ksh
menu_rotation()
{
#Variables
CHOIX1="Rotation 1"
CHOIX2="Rotation 2"
CHOIX3="Rotation 3"
... (11 Replies)
Discussion started by: Sekullos
11 Replies
5. UNIX for Dummies Questions & Answers
the idea is to create script with menu and when option 1 or2 is pressed program should clear screan display info and get back to menu....
I managed some code but getting errors...
#!/bin/bash
choice1=ls -l|awk'{print $9 $1}'
choice2= ls | wc -c
choice3=exit
while
do
clear
echo "... (8 Replies)
Discussion started by: me.
8 Replies
6. Shell Programming and Scripting
Problem:
I am trying to create a menu in a menu script and I am running into an issue with the calculator portion of the script. I am first presented with the ==Options Menu== which all 5 options working correctly. Now comes the fun part. I select option 1 which takes me to my ==Calculator... (1 Reply)
Discussion started by: iDdraig
1 Replies
7. Shell Programming and Scripting
Can someone show me how to create a menu? I want a script someone who is not unix literate can use, with some simple commands like ls -al a directory or find files based on a date, does anyone know how to make a simple menu ? Thanks. (4 Replies)
Discussion started by: taekwondo
4 Replies
8. UNIX for Advanced & Expert Users
I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item.
the syntax I am using to create the dynamic Menu is
menu="$ARG1 Host names"
`cat Hosts.data | regex '^(''.*)$0$' '
name="$m0"
action=open Menu.Login.mnu... (0 Replies)
Discussion started by: craigmckeeman
0 Replies
9. Shell Programming and Scripting
I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item.
the syntax I am using to create the dynamic Menu is
menu="$ARG1 Host names"
`cat Hosts.data | regex '^(''.*)$0$' '
name="$m0"
action=open... (2 Replies)
Discussion started by: craigmckeeman
2 Replies
tk_popup(3tk) Tk Built-In Commands tk_popup(3tk)
__________________________________________________________________________________________________________________________________________________
NAME
tk_popup - Post a popup menu
SYNOPSIS
tk_popup menu x y ?entry?
_________________________________________________________________
DESCRIPTION
This procedure posts a menu at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed
with the mouse or the keyboard. Menu is the name of a menu widget and x and y are the root coordinates at which to display the menu. If
entry is omitted or an empty string, the menu's upper left corner is positioned at the given point. Otherwise entry gives the index of an
entry in menu and the menu will be positioned so that the entry is positioned over the given point.
EXAMPLE
How to attach a simple popup menu to a widget.
# Create a menu
set m [menu .popupMenu]
$m add command -label "Example 1" -command bell
$m add command -label "Example 2" -command bell
# Create something to attach it to
pack [label .l -text "Click me!"]
# Arrange for the menu to pop up when the label is clicked
bind .l <1> {tk_popup .popupMenu %X %Y}
SEE ALSO
bind(3tk), menu(3tk), tk_optionMenu(3tk)
KEYWORDS
menu, popup
Tk 4.0 tk_popup(3tk)