Cloud machine bash script
Orçamento $30-50 USD
- Freelancer
- Desenvolvimento Ágil
- Linux
- Cloud machine bash script
Any body can give me suggestion, how to make the virtual system explicitly down/unreachable for 10 second in everyone minute so that I can fetch the appropriate logs (I am using a bash script)
Deliverables
#!/bin/bash
set -x
URL=[login to view URL]
while true; do
now=$(TZ=utc date -Iseconds)
#wget $URL -q -O /dev/null
nc -z -n -v [login to view URL] 9022 2>&1 > /dev/null
if [[ "$?" -eq "0" ]]
then
echo $now SUCCESS >> [login to view URL]
else
echo $now FAIL >> [login to view URL]
fi
echo "$(tail -60 [login to view URL])" > [login to view URL]
wc -l [login to view URL]
sleep 5
done
5 freelancers estão ofertando em média $34 nesse trabalho
Hi, If you can manage the VM and have access to host node and the VM filesystem is on LVM then you can use LVM snapshot and copy the logs without any downtime to the VM. I can script grabiing logs from snapshot.
Hello there! I saw your post and I am more then certain that I would be a great fit for this job. I would need a copy of your Virtual Machine, or a documentation about what exactly you are trying to stop start and fe Mais
Hi there, It is possible to perform repetitive tasks with cron, see if it solves your problem: [login to view URL]