mchess-server/client_script.sh

20 lines
293 B
Bash
Raw Normal View History

2022-10-22 18:01:55 +00:00
#!/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