Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish) Polish OTW
  • Search

[SOLVED][OT]Bash i dialog "--menu"

Rozmowy nie związane ściśle z Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
nmap
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Sun Nov 28, 2004 5:32 pm
Location: /dev/poznan/debiec

[SOLVED][OT]Bash i dialog "--menu"

  • Quote

Post by nmap » Sat Jan 29, 2005 8:53 pm

Mam problem pisze sobie takie proste skrypciki i chciałem zrobic takie wybierane menu .
W dokumentacji basha wyczytałem ze najlepsze do tego będzie --menu . Ale niestety nie potrafie teraz przekazać dalej tych wyborów do np. case czy jakiejs innej instrukcji

Code: Select all

     dialog --title "--== MENU ==--" \
      --backtitle "Super okno" \
      --menu "Menu wyboru :" 20 20 7 \
      1 SSH  \
      2 FTP \
      3 HTTP \
      4 Wyjście 
moze jakoś z tą zmienna tza pokombinować ?
$?

Pozdrawiam
Last edited by nmap on Sun Jan 30, 2005 8:55 am, edited 1 time in total.

FSF OpenBSD Open Source . You Have the Power !
Top
Rav70
l33t
l33t
User avatar
Posts: 607
Joined: Wed Feb 11, 2004 8:27 pm
Location: Poland

  • Quote

Post by Rav70 » Sat Jan 29, 2005 9:12 pm

Poczytaj sobie źródła w /usr/doc/dialog-<wersja>/samples. Wynikałoby z nich że należy przekierować stderr do pliku lub zmiennej środowiskowej i z niego/niej odczytać wybór, natomiast z $? kod wyjścia - np. 1 dla naciśnięcia przycisku Cancel.
Pozdr. Rav
Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead.
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Polish OTW”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic