Käynnissä

ASAP: Create a bash script to act as a watchdog ran via cron

I need a bash script which can be ran every minute from cron. The bash script must perform the following exactly.

**check ifconfig to see if the interface tun0 exists:

if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn

when fixed, send an email using ssmtp to every email address in /root/[url removed, login to view]

**check if tun0 has an ip address:

if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn

when fixed, send an email using ssmtp to every email address in /root/[url removed, login to view]

**check if tun0 is down:

if yes, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn

when fixed, send an email using ssmtp to every email address in /root/[url removed, login to view]

**check if openvpn is running:

if not, run 'systemctl stop openvpn; sleep 1; systemctl start openvpn

when fixed, send an email using ssmtp to every email address in /root/[url removed, login to view]

**check if tun0 ip address is the same as /root/[url removed, login to view]

if not, send an email using ssmtp to every email address in /root/[url removed, login to view] with the new tun0 ip address and update the ip address in /root/[url removed, login to view]

Taidot: Debian, Linux, Verkonhallinta, Ubuntu

Näytä lisää: create cron job script osx, whm cron bash script, create website html bash script, bash script create html csv, script create cron, fake cron job script run days, script create subdomain, script create subdomain virtual server, par2 script create, calling shell script using bash, script create files list, bash shell script calling bash shell script, php script create href subdirectories, cron cache script, bash script query mysql database, bash script website clicks, unit testing bash script, sendmail bash script, script create multiple gmailcom accounts, script create filesfrom list, bash script set proxy, common bash script admin task, mutt bash script, unix ftp bash script, best bash script

Tietoa työnantajasta:
( 106 arvostelua ) Sacramento, United States

Projektin tunnus: #13153728

Myönnetty käyttäjälle:

ignaciorodrguez

Shouldn't take more than a day. I will need to know the content of the file that contains the mails. Thanks.

50 $ USD 2 päivässä
(0 arvostelua)
0.0

6 freelancers are bidding on average $62 for this job

ccrssaa

Will it be possible to use your system for testing ? Or provide script and wait for tests and feedback only ? 2nd case will take a bit more time to complete Is ssmtp already configured ? I'd prefer to use ip link Lisää

50 $ USD 1 päivässä
(1 arvostelu)
3.3
50 $ USD 1 päivässä
(7 arvostelua)
2.9
dirisalagopal

Amazon Web Services: Lambda, API Gateway, EC2, Load Balancers, RDS, Elastic Beanstalk, Elastic File System, IAM, VPC, Security Groups, Cloud Formation,, S3, CLoudFront, Redshift, Route 53, Cloud Watch, Kinesis, SNS, SQ Lisää

149 $ USD 0 päivässä
(5 arvostelua)
2.5
37 $ USD 6 päivässä
(0 arvostelua)
0.0
rapidsoft4

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c Lisää

35 $ USD 6 päivässä
(0 arvostelua)
0.0
shanmugam97

Hi sir this is shanmugam I have a more 5 years experience as Linux administrator I created a lot of shell script if you give me this project I will create a shell script perfectly if you not satisfie my script you wo Lisää

35 $ USD 2 päivässä
(0 arvostelua)
0.0