dotfiles/profiles/user0/files/loop.sh

4 lines
190 B
Bash
Raw Normal View History

2024-10-06 15:25:05 -05:00
#!/usr/bin/env bash
while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done