2022-10-22 18:01:55 +00:00
|
|
|
#!/bin/bash
|
2022-11-19 10:41:10 +00:00
|
|
|
echo $PWD
|
2022-10-22 18:01:55 +00:00
|
|
|
|
|
|
|
var_file="./var_file"
|
|
|
|
|
|
|
|
if [ -f "$var_file" ]
|
|
|
|
then
|
|
|
|
echo "file exists"
|
|
|
|
var=$(cat $var_file)
|
|
|
|
else
|
|
|
|
"file does not exist"
|
|
|
|
var=10
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Value of var: " $var
|
|
|
|
|
|
|
|
let var=$var+1
|
|
|
|
echo $var ": Hallo Freunde der Sonne" | openssl s_client -connect localhost:8080
|
|
|
|
|
|
|
|
|
2022-11-19 10:41:10 +00:00
|
|
|
echo $var > $var_file
|