Created
May 14, 2021 08:52
-
-
Save ties/fc1c47a3a599840c61c4020419c7e254 to your computer and use it in GitHub Desktop.
rpki-client: run looped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
export BASE=${HOME} | |
echo "Removing cache and output directory..." | |
rm -rf ${BASE}/data/rpki-client/cache/* | |
rm -rf ${BASE}/data/rpki-client/output/* | |
echo "Running rpki-client" | |
exec /usr/sbin/rpki-client -vv -t /etc/rpki/ripe.tal -d ${BASE}/data/rpki-client/cache/ ${BASE}/data/rpki-client/output/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
i=0 | |
uplim=25 | |
while [ $i -lt $uplim ] | |
do | |
(( i = i + 1 )) | |
TARGET=`date +%Y%m%d-%H%M-rpki-client.log` | |
echo "Run ${i} to ${TARGET}" | |
./rpki-client.sh > ${TARGET} 2>&1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment