Find Jobs
Hire Freelancers

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

$25-50 USD

已完成
已发布大约 7 年前

$25-50 USD

货到付款
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/[login to view URL] **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/[login to view URL] **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/[login to view URL] **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/[login to view URL] **check if tun0 ip address is the same as /root/[login to view URL] if not, send an email using ssmtp to every email address in /root/[login to view URL] with the new tun0 ip address and update the ip address in /root/[login to view URL]
项目 ID: 13153728

关于此项目

4提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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天之内
5.0 (16条评论)
4.2
4.2
4威客以平均价$71 USD来参与此工作竞价
用户头像
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, SQS and etc. Advertising Technologies: Facebook Graph API's, FB Website Custom Audience, FB Dynamic Product Ads, Real Time Bidding, Retargeting Ads. Programming Languages: C, C++, Java, Go Big Data Technologies: Kafka, Flume, Pig, Memsql, Aerospike, Redis, MemCache and etc. Miscellaneous: Algorithms, Data Structures, Distributed Systems, Operating Systems Databases: Oracle, MySQL, Operating Systems: Windows, Linux, Ubuntu and etc. Web Technologies: HTML, PHP Code Deployments: Puppet, Docker Monitoring: Nagios, Ganglia
$149 USD 在0天之内
4.9 (20条评论)
5.0
5.0
用户头像
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 checked your requirements.i have right skills to work on this assignment my award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. can u provide your email or sky-pe etc for further discussion about the project. I am ready to discuss with you with best Regards
$35 USD 在6天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
West Jordan, United States
5.0
155
付款方式已验证
会员自12月 3, 2012起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。