mchess-server/client_script.sh
2022-11-19 11:41:10 +01:00

22 lines
304 B
Bash
Executable File

#!/bin/bash
echo $PWD
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