How do I wait for networking before running a script? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|improve this 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 his startup2.sh, but I think it is not a dupe.
    – peterh
    Nov 10 '17 at 6:02















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







share|improve this 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 his startup2.sh, but I think it is not a dupe.
    – peterh
    Nov 10 '17 at 6:02













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







share|improve this question













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









share|improve this question











share|improve this question




share|improve this question










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 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
















@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











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






share|improve this answer




















  • Any chance you have the thing I need to put in the if statement?
    – Jackie
    Nov 10 '17 at 15:31

















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






share|improve this answer




















  • Any chance you have the thing I need to put in the if statement?
    – Jackie
    Nov 10 '17 at 15:31














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






share|improve this answer




















  • Any chance you have the thing I need to put in the if statement?
    – Jackie
    Nov 10 '17 at 15:31












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






share|improve this answer












In a script you can use if condition by mentioned until network is up. it should start



use if condition logic







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay