Suoritettu

Bash Script: Calculate sundown and enter this time in cron tab

[BACKGROUND]

-----------------------

Industrial Building Lighting – when the sun goes down, lightings should go up (executed via a linux command line utility – out of scope). Based on geo-coordinates, this time varies. It should run on Debian 6 system.

[SPECIFICATION]

-----------------------

SCRIPT_NAME: “[url removed, login to view]”

INPUT: $1 geo-coordinates (x,y), $2 hour_offset (+/- hours), $3 minute_offset (+ minutes), $4 execution_string

BUSINESS LOGIC: Takes the parameters, calculates internally the sundown based on the geo-coordinates given in $1, builds internally an cron-job string, and the replaces an existing line (the last line in the cron file – the one frpom the day before) in crontab with new calculated

EXAMPLE: [url removed, login to view] 67,76,+2,+15,“bash /opt/scripts/[url removed, login to view]”

SCRIPT EXECUTION: There is a fixed/static cron-tab line which executes “[url removed, login to view]” every day at 02:00 am (Annotation: so that at the next day the lights will be started with the new sundown time)

OUTPUT/RESULT (please make a valid cron entry): (Annotation: replaces last line in /var/spool/cron/tab/root)

* * $calculated_sundown_hour (+/- $2 = hour_offset) $calculated_sundown_minute (+ $3 minute_offset)

Taidot: Linux, PHP, Python, Shell Script, Ubuntu

Näytä lisää: bash script kill process cpu time, whm cron bash script, bash script enter password, linux, shell script, debian, bash script process start time, unix bash script time format, bash script current date time, bash script kill process time, activate php script time cron, unit testing bash script, sendmail bash script, bash script set proxy, common bash script admin task, mutt bash script, unix ftp bash script, best bash script

Tietoa työnantajasta:
( 89 arvostelua ) Trontheim, Germany

Projektin tunnus: #16335948

Myönnetty käyttäjälle:

$25 USD 1 päivässä
(245 Arvostelua)
6.9

12 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

rajeshpal007

Hi, I can do this. I am a Shell Scripting Expert with 10 years of experience. Thanks & Regards, Rajesh Pal NEC

$55 USD 1 päivässä
(15 arvostelua)
4.8
$55 USD 1 päivässä
(36 arvostelua)
5.0
kyleboyer

Hello! My name is Kyle. I have a lot of experience with writing bash scripts to do all sorts of automated tasks. I believe that your bash script should be simple to create. This would only need one web request, and Lisää

$25 USD 1 päivässä
(18 arvostelua)
4.7
zkutch

Hello More 20 years programming experience. I need more details to set real price and time. Regards.

$50 USD 1 päivässä
(31 arvostelua)
5.2
GeorgeKazi

Hello! I am an experienced shell script coder and I can help you. Let's talk! Thanks, George

$30 USD 1 päivässä
(29 arvostelua)
4.6
$30 USD 1 päivässä
(4 arvostelua)
3.5
VarunUnix

Hi, I can do this, but few queries - 1. How the parameters are passed to script - 2. What is the internal calculations based on geo-coordinates. I have other queries as well,. You can go through my profile and if in Lisää

$20 USD 1 päivässä
(1 arvostelu)
3.1
mikhailkozalski

Hi I have several scraping modules selenium, scrapy etc. If you hire me , I 'll finish your project for a few times perfectly. Thanks for your attention.

$25 USD 1 päivässä
(3 arvostelua)
2.8
tsymbalyukivan

I'm working in hosting company as Linux administrator 10 years, therefore I can help you with your task. My last finished script, project - https://www.freelancer.com/projects/php/script-detect-undelivered-emails/ Wa Lisää

$50 USD 2 päivässä
(5 arvostelua)
2.7
gyogeshwar

Pay me as per my work quality .......................................................................

$25 USD 1 päivässä
(0 arvostelua)
0.0
jackpaget27

Experienced in python and working with Julian dates to calculate sunrise/sunset. Also experienced in Linux server administration so will be able to complete this task efficiently and rapidly.

$25 USD 1 päivässä
(1 arvostelu)
1.0