499558 Linux script - check folder dates


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


Scan this folder /test/dates/


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.


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.


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]


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,


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

Daha fazlasını gör: 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



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!

%selectedBids___i_period_sub_7% gün içinde 50%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(24 Değerlendirme)