Axis 2401 - PHP3 GUIDE Technical Information Seite 68

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 85
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 67
An Introduction to Shells in General
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 68
The case statement
The case statement enables you to compare a pattern with several other patterns and execute a
block of code if a match is found. The syntax of the case statement is:
case string in
str1)
commands;;
str2)
commands;;
*)
commands;;
esac
string
is compared to str1 and str2. If one of these strings matches string1, the
commands up until the double semicolon (;;) are executed. If neither str1 nor str2 matches
string, the commands associated with the asterisk are executed. This is the default case
condition because the asterisk matches all strings.
The for statement
The for statement executes the commands that are contained within it a specified number of
times. The syntax of the for statement is:
for var1 in list
do
commands
done
In this form, the for statement executes once for each item in the list. This list can be a variable
that contains several words separated by spaces, or it can be a list of values that is typed directly
into the statement. Each time through the loop, the variable var1 is assigned the current item in
the list, until the last one is reached.
The second form of for statement has the following syntax:
for var1
do
statements
done
In this form, the for statement executes once for each item in the variable var1. When this
syntax of the for statement is used, the shell program assumes that the var1 variable contains
all the positional parameters that were passed in to the shell program on the command line.
The
while statement
Another iteration statement offered by the shell programming language is the
while statement.
This statement causes a block of code to be executed while a provided conditional expression is
true. The syntax for the while statement is the following:
Seitenansicht 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 84 85

Kommentare zu diesen Handbüchern

Keine Kommentare

Chauvet LEDsplash 2 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Sztuczne oświetlenie Chauvet LEDsplash 2.
Dostarczamy 2 pdf podręczników Chauvet LEDsplash 2 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Sztuczne oświetlenie Chauvet

Modele Rodzaj dokumentu
Intimidator 2.0 HTI Instrukcja Użytkownika   Chauvet Intimidator 2.0 HTI User manual, 18 strony
4Bar Instrukcja Użytkownika   Chauvet 4Bar User manual, 15 strony
4Bar Instrukcja Użytkownika   Chauvet 4Bar User manual, 16 strony
Intimidator Color DMX-500 Instrukcja Użytkownika   Chauvet Intimidator Color DMX-500 User manual, 15 strony
Line Dancer LED Instrukcja Użytkownika   Chauvet Line Dancer LED User manual, 12 strony
J-Six Instrukcja Użytkownika   Chauvet J-Six User manual, 9 strony
COLORado Panel Instrukcja Użytkownika   Chauvet COLORado Panel User manual, 35 strony
Eclipse Instrukcje Operacyjne   Chauvet Eclipse Operating instructions, 14 strony
Legend 230SR Beam Instrukcja Użytkownika   Miranda Lambert, 2 strony
INTIMIDATOR DMX-610A Dokumentacja   Chauvet INTIMIDATOR DMX-610A Specifications, 5 strony
Led Shadow Instrukcja Użytkownika   Chauvet Led Shadow User manual, 18 strony
LED-PAR83 Instrukcja Użytkownika   Projet1:Mise en page 1.qxd, 12 strony
LED Par 64-36VWB Instrukcja Użytkownika   Chauvet LED Par 64-36VWB User manual [de] [nl] , 15 strony
COLORado 2-Quad Zoom VW Tour Instrukcja Użytkownika    COLORado 2-Quad Zoom VW Tour Quick, 20 strony
Scorpion 320D EU Instrukcja Użytkownika   4 - 5 iulie, 34 strony
Hemisphere 5 Instrukcja Użytkownika   instruction sheet - Broadway Party & Tent Rental, 1 strony