ppts2014马哥全套linux运维教程pptsdialog_第1页
ppts2014马哥全套linux运维教程pptsdialog_第2页
ppts2014马哥全套linux运维教程pptsdialog_第3页
ppts2014马哥全套linux运维教程pptsdialog_第4页
ppts2014马哥全套linux运维教程pptsdialog_第5页
已阅读5页,还剩18页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、dialogsession affinityv In-memoryEngine上的jvmRoute参数,clusterchannelweb.xml时间同步2018/10/2shell dialogpage:2关闭,session affinityv /sess2018/10/2shell dialogpage:3What is dialog?v A program that will let you to present a variety of questions or display messages using dialog boxes from a

2、shell script.v Created by Savio Lam, and currently maintained by Thomas E. Dickeyv Use the dialog utility for creating TTY (terminal) dialog boxes.2018/10/2shell dialogpage:4dialog packagev The dialog command uses command line parameters to determine what type of Window widget to produce.v A widget

3、is the dialog package term for a type of Windows element.v Each dialog widget provides output in two forms:UsingUsingSTDERRtheexitcodestatus“OK” : 0“Cancle” , “No” : 1$?2018/10/2shell dialogpage:5The dialog Widgets2018/10/2shell dialogpage:6Syntaxv dialog -common-options -boxType Text Height Width -

4、box-specific-option-common-optionsareusedtosetdialogboxesbackgroundcolor,title,etc.threeAlldialogboxeshaveatleastparameters:Text : The caption or contents of the box.height : The height of the dialog box.width : The width of the dialog box.v dialog -print-maxsizev dialog -create-rc file2018/10/2shel

5、l dialogpage:7The first dialog boxv dialog -backtitle “The first dialog box”-title “Hello” -yesno “Is this your first dialog box?” 7252018/10/2shell dialogpage:8common-optionsv -backtitle backtitleSpecifies displayedabacktitlestringtobeonthebackdrop,atthetopofthescreen.v -begin y xSpecify cornerv -c

6、olorsthepositionoftheupperleftofadialogboxonthescreen.InterpretembeddedZsequencesinthedialogtextby U,the ectfollowingcharacter,0-7,b,B,u,RestorenormalsettingswithZn2018/10/2shell dialogpage:9common-options(2)v -defaultnoMakeNo.thedefaultvalueoftheyes/noboxav -default-item stringSetor thethedefaultit

7、eminachecklist,form inmenu boxbox.Normallythefirstitemisthedefault.v -insecureMakesthepasswordwidgetfriendlierbutlesssecure,byechoingasterisksforeachcharacter.2018/10/2shell dialogpage:10common-options(3)v -nocancelSuppress inputboxv -nookSuppress inputboxthe andCancelbutton modes.inchecklist,menubo

8、xthe andOKmenubuttoninchecklist,boxmodes.v -no-shadowSuppressshadowsthatwouldbedrawntotherightandbottomofeachdialogbox.v -ok-label stringOverridethelabelusedforOKbuttons.2018/10/2shell dialogpage:11common-options(4)v -timeout secsTimeout(exitwitherrorcode)ifnouserresponse seconds.withinthegivennumbe

9、rofv -title titleSpecifiesatitlestring dialogtobedisplayedatthetopofthebox.2018/10/2shell dialogpage:12Box options2018/10/2shell dialogpage:13The msgbox widgetv dialog -msgbox text height widthdialogmsgboxcolors-titleTesting-colors-“Z3This istestZn”a10202dialog.out-ok-lable“text”2018/10/2shell dialo

10、gpage:14The yesno widgetv dialog -yesno text height widthdialog shadow-title-yesno“Delete “Deleteafile”-no-thefile/tmp/test.txt?”7352018/10/2shell dialogpage:15The inputbox widgetv dialog -inputbox text height widthdialog-title“Inputyour yourname” name:”-10inputbox“Pleaseinput302/tmp/name.txtv -extr

11、a-buttonv -extra-label string2018/10/2shell dialogpage:16The textbox widgetv dialog -textbox file height widthdialog-title“The80fstab”-textbox/etc/fstab17v -exit-label string2018/10/2shell dialogpage:17The menu widgetv dialog -menu text height widthtag1 item1 tag2 item2 menu-heightdialog-title“picka

12、 1choice” “Display-menu“Choose usage”one”12355thedisk2“Displaythememinfo”3“Exit”2018/10/2shell dialogpage:18The fselect widgetv dialog -fselect filepath height widthdialog/root/-title“Pickonefile”-fselect7402018/10/2shell dialogpage:19The gauge widgetv dialog -gauge text height width2018/10/2shell d

13、ialogpage:20The form widgetv dialog -form text height width formheight label y x item y x flen ilen .flen: shownilen:fieldlength,definesthelengthforaselectedfieldinput-length,definesthepermissiblelengthofthedataenteredintheUsefieldup/downarrows(orcontrol/N,control/P)tomovebetweenfields.Usetabtomovebetweenwindows.2018/10/2shell dialogpage:21The form widget(2)v # dialog -title Add a user -form Please input the infomation of new user: 12 40 4 Username: 1 1 1 15 15 0Full name: 2 1 2 15 15 0Home Dir: 3 1 3 15 15 0Shell: 4 1 4 15 15 02018/10/2shell dialogpage:22T

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论