Тренировка на паре
This commit is contained in:
parent
794a8c32c6
commit
773f8d990a
@ -1,12 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
foo="help"
|
outer() {
|
||||||
|
local count=0
|
||||||
internakCall() {
|
inner() {
|
||||||
local foo='error'
|
count=$(($count + 1))
|
||||||
echo 'Вызов HTTP сервера GET'
|
echo $count
|
||||||
return 10
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res=`internakCall`
|
outer
|
||||||
echo $?
|
outer
|
||||||
|
outer
|
||||||
|
outer
|
||||||
|
|
||||||
|
# res=outer
|
||||||
|
# count=$(res)
|
||||||
|
7
bash/train_bash/rest.sh
Executable file
7
bash/train_bash/rest.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while true; do {
|
||||||
|
echo -ne "HTTP/1.0 200 OK\r\n
|
||||||
|
Content-Length: \$(wc -c <index.htm)\r\n\r\n";
|
||||||
|
} | nc -l -p 8080 ;
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user