Skip to content

Instantly share code, notes, and snippets.

@ties
Created May 14, 2021 08:52
Show Gist options
  • Save ties/fc1c47a3a599840c61c4020419c7e254 to your computer and use it in GitHub Desktop.
Save ties/fc1c47a3a599840c61c4020419c7e254 to your computer and use it in GitHub Desktop.
rpki-client: run looped
#!/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/
#!/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