Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[b]catch[/b] [teal]{[/teal][b]exec[/b] external_command[teal]}[/teal] result option
[b]puts[/b] [teal][[/teal]dict get [navy]$option[/navy] [teal]-[/teal]code[teal]][/teal]
Do a [tt]puts [navy]$option[/navy][/tt] to see the entire list populated by [tt]catch[/tt].Kamma said:can you describe me what puts [dict get $option -code] do ?
[b]set[/b] whatever [green][i]"one two three four five six"[/i][/green]
[b]puts[/b] [teal][[/teal]dict get [navy]$whatever[/navy] three[teal]][/teal]
[gray]# outputs four[/gray]
[tt]id[/tt] returns non-zero exit code when no such user exists. It not depends on logged in status.Kamma said:how can i exit if id username return error(means user not existed)
[b]if[/b] [teal]{[/teal] [teal][[/teal][b]catch[/b] [teal]{[/teal][b]exec[/b] [teal]/[/teal]usr[teal]/[/teal]bin[teal]/[/teal]groups [navy]$var[/navy][teal]}[/teal] bla option[teal]][/teal] [teal]}[/teal] [teal]{[/teal]
[b]puts[/b] [teal][[/teal][b]lindex[/b] [navy]$option[/navy] [teal][[/teal][b]lsearch[/b] [navy]$option[/navy] [teal]-[/teal]code[teal]]+[/teal][purple]1[/purple][teal]][/teal]
[teal]}[/teal]