Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 689  / 2 Years ago, sun, february 6, 2022, 11:58:33

I have a script to automatically connect to a server and want it to run each time I login with my user account. If possible make the script wait a few seconds to connect until the network can be connected.


More From » login

 Answers
2
#!/bin/bash

sleep 11 &&

<your_script> -c ~/.<your_scriptrc>

#!/bin/bash tells the computer you want it to do the following in bash, sleep 11 && tells the computer to wait 11 seconds


(increase or decrease the time as needed).


[#39869] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
;