Devam Ediyor

499558 Linux script - check folder dates

Hello,

I need a script that can run on a Linux server that can do this:

1.

Scan this folder /test/dates/

2.

Within that folder there might be subfolders.

If subfolders are found they are in the format %year%-%month%-%day%-%hour%-%minute%-%second%

So for example this folder might exist there: /test/dates/2011-01-01-13-00-00

Meaning folder is date:

: year 2011

: month 01

: day 01

: hour 01

: minute 01

: second 01

there might exist one folder or none but mostly its alot of folders.

3.

The folders date is always in the future - could be days / hours that differ but mostly the folders are a few minutes in the future.

4.

Then the script should compare the current date with the folders date.

And if the folders date is not more than 10 minutes in the future it should run a bash file:

/test/[url removed, login to view]

5.

If a folder exists that is less than 10 minutes in the future the script should not run.

I prefer if the script is in perl format.

I plan to schedule your script to run with a cron task / each hour.

Thanks for help,

Best regards,

Johan

Beceriler: Her şey Kabul, Linux, Perl, PHP, Kabuk Betiği

Daha fazlasını görün: linux 4.5, check hours, bash file, bash 0, sh, perl linux, minute script, Linux script, linux bash script, johan, file folder, bash script, php cron schedule, compare exist, linux php scan, run script linux, linux perl bash, linux task help, hours dates, script schedule, help linux, check compare, php cron task, linux test, server check

İşveren Hakkında:
( 43 değerlendirme ) Stockholm,

Proje NO: #2245478

Seçilen:

endyarkyrie

This looks to be a very straightforward script. I can have it for you within a few hours of acceptance, and will work with you to test it and ensure it is working exactly as you expect. Thanks!

0 gün içinde 50$ USD
(24 Değerlendirme)
5.0