source:
trunk/globale.sh@
20
Last change on this file since 20 was 2, checked in by , 14 years ago | |
---|---|
|
|
File size: 230 bytes |
Line | |
---|---|
1 | |
2 | |
3 | globale=0 |
4 | |
5 | function primo(){ |
6 | globale=1; |
7 | echo "Primo ha finito" |
8 | } |
9 | |
10 | function secondo(){ |
11 | echo "Secondo ha iniziato" |
12 | sleep 10 |
13 | echo $globale; |
14 | echo "Secondo ha finito" |
15 | } |
16 | |
17 | |
18 | primo ; secondo ; |
19 | primo & secondo & |
20 | wait %1 %2 |
Note:
See TracBrowser
for help on using the repository browser.