mchess-server/client_script.sh
2022-10-22 20:01:55 +02:00

20 lines
293 B
Bash
Executable File

#!/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