20 lines
293 B
Bash
20 lines
293 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
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
|
||
|
|
||
|
|
||
|
echo $var > $var_file
|