How do I wait for networking before running a script? [duplicate]
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
This question already has an answer here:
Debian - how to run a script on startup as soon as there is an internet connection ready for use?
3 answers
I am a Linux novice but I have a .bashrc file and inside it I have added the line ~/bin/startup2.sh
. This works fine if I open a terminal after startup. But when I open a terminal on reboot like this, I get an error that looks like it is related to networking.
google.auth.exceptions.TransportError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Is there a way to delay the execution of this script until I get networking?
This is using a Raspberry Pi 3 B
networking startup
marked as duplicate by Stephen Rauch, peterh, ñÃÂsýù÷, GAD3R, SatÃ
 Katsura Nov 10 '17 at 7:49
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
-1
down vote
favorite
This question already has an answer here:
Debian - how to run a script on startup as soon as there is an internet connection ready for use?
3 answers
I am a Linux novice but I have a .bashrc file and inside it I have added the line ~/bin/startup2.sh
. This works fine if I open a terminal after startup. But when I open a terminal on reboot like this, I get an error that looks like it is related to networking.
google.auth.exceptions.TransportError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Is there a way to delay the execution of this script until I get networking?
This is using a Raspberry Pi 3 B
networking startup
marked as duplicate by Stephen Rauch, peterh, ñÃÂsýù÷, GAD3R, SatÃ
 Katsura Nov 10 '17 at 7:49
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in hisstartup2.sh
, but I think it is not a dupe.
â peterh
Nov 10 '17 at 6:02
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
This question already has an answer here:
Debian - how to run a script on startup as soon as there is an internet connection ready for use?
3 answers
I am a Linux novice but I have a .bashrc file and inside it I have added the line ~/bin/startup2.sh
. This works fine if I open a terminal after startup. But when I open a terminal on reboot like this, I get an error that looks like it is related to networking.
google.auth.exceptions.TransportError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Is there a way to delay the execution of this script until I get networking?
This is using a Raspberry Pi 3 B
networking startup
This question already has an answer here:
Debian - how to run a script on startup as soon as there is an internet connection ready for use?
3 answers
I am a Linux novice but I have a .bashrc file and inside it I have added the line ~/bin/startup2.sh
. This works fine if I open a terminal after startup. But when I open a terminal on reboot like this, I get an error that looks like it is related to networking.
google.auth.exceptions.TransportError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Is there a way to delay the execution of this script until I get networking?
This is using a Raspberry Pi 3 B
This question already has an answer here:
Debian - how to run a script on startup as soon as there is an internet connection ready for use?
3 answers
networking startup
asked Nov 9 '17 at 22:33
Jackie
993
993
marked as duplicate by Stephen Rauch, peterh, ñÃÂsýù÷, GAD3R, SatÃ
 Katsura Nov 10 '17 at 7:49
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Stephen Rauch, peterh, ñÃÂsýù÷, GAD3R, SatÃ
 Katsura Nov 10 '17 at 7:49
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in hisstartup2.sh
, but I think it is not a dupe.
â peterh
Nov 10 '17 at 6:02
add a comment |Â
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in hisstartup2.sh
, but I think it is not a dupe.
â peterh
Nov 10 '17 at 6:02
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in his
startup2.sh
, but I think it is not a dupe.â peterh
Nov 10 '17 at 6:02
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in his
startup2.sh
, but I think it is not a dupe.â peterh
Nov 10 '17 at 6:02
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
In a script you can use if condition by mentioned until network is up. it should start
use if condition logic
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
In a script you can use if condition by mentioned until network is up. it should start
use if condition logic
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
add a comment |Â
up vote
0
down vote
In a script you can use if condition by mentioned until network is up. it should start
use if condition logic
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
add a comment |Â
up vote
0
down vote
up vote
0
down vote
In a script you can use if condition by mentioned until network is up. it should start
use if condition logic
In a script you can use if condition by mentioned until network is up. it should start
use if condition logic
answered Nov 10 '17 at 2:39
Praveen Kumar BS
1,010128
1,010128
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
add a comment |Â
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
Any chance you have the thing I need to put in the if statement?
â Jackie
Nov 10 '17 at 15:31
add a comment |Â
@Time4Tea I can't see any signature that it would be a networking problem. The question is unclear, because the OP didn't say (and he probably can't even say), what is in his
startup2.sh
, but I think it is not a dupe.â peterh
Nov 10 '17 at 6:02