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)



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" ]]


echo $now SUCCESS >> [login to view URL]


echo $now FAIL >> [login to view URL]


echo "$(tail -60 [login to view URL])" > [login to view URL]

wc -l [login to view URL]

sleep 5


Kemahiran: Linux, Skrip Kekerang, Bash Scripting

Lihat lagi: best bash script, unix ftp bash script, mutt bash script, common bash script admin task, bash script set proxy, sendmail bash script, unit testing bash script, bash script website clicks, bash script query mysql database, bash script login webiste, file parsing bash script, parse using bash script find average, bash script check web page, script outlook text body, bash script find ftp folder existing, bash script date, bash script update date, formatting date bash script, bash script current date time

Tentang Majikan:
( 1 ulasan ) Băilești, Romania

ID Projek: #29457878

5 pekerja bebas membida secara purata $34 untuk pekerjaan ini


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.

$40 USD dalam sehari
(27 Ulasan)
(0 Ulasan)

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 Lagi

$30 USD dalam 7 hari
(0 Ulasan)

Hi there, It is possible to perform repetitive tasks with cron, see if it solves your problem: [login to view URL]

$30 USD dalam sehari
(0 Ulasan)

bro you can use ping/nc command and while you can ping every 2-3 seconds and You can easily catch it when there is no response 2-3 times. if you can't I can help you for 3-4 dollars send me a message or reach me on my Lagi

$30 USD dalam sehari
(0 Ulasan)