Running SH after reconnect
Closed this issue · 3 comments
IAmVolvic commented
As the readme said,
use -r <script path>
I've tried the following,
./netcheck.sh -i -r scripts/test.sh
test.sh has the following
#!/bin/bash
#Reconnect
file="test.txt"
echo "$USER" > $file
cat $file
But the script doesn't run when the network is reconnected after I simulate a network downtime.
Am I doing something wrong?
TristanBrotherton commented
-i
is a one time install command. Please try again with out -i
. You will need manually install the script as a service to use custom options.
IAmVolvic commented
TristanBrotherton commented
The issue is your script isn't found. It's unrelated to netcheck. Makes sure the script is in your path or you're providing the correct relative path.