loop script in python and bash shell script -- 2

Closed Posted 7 years ago Paid on delivery
Closed Paid on delivery

this is a request for two separate scripts that perform the same function.

the first is to be developed in python and the second in ksh compatible shell

script. Minimum scripts compatibility python version 2.6.1 and ksh shell.

both of the scripts should have the same functions and features.

the required features are:

- the scripts will be running on linux or freebsd OS

- define the work path: work at a given directory path, for example: /foo/bar/my/app/data.

the path in question has directories that are named in date format, for example: /foo/bar/my/app/data/201610

- the folder name string (the date format) may vary, additional information will be provided.

- the work path may contain other folders with different names.

- the script should identify the 3 latest directories, for example:

/foo/bar/my/app/data/201610

/foo/bar/my/app/data/201609

/foo/bar/my/app/data/201608

for each of the three identified directories, a set of commands will be issued. for example:

- "ls -l"

- "du"

- "ls -l > [login to view URL]"

these commands to be executed, should be executed from the shell so python can no execute own functions but has to leverage the shell.

- the script should identify the 12 latest directories, for example:

/foo/bar/my/app/data/201610

/foo/bar/my/app/data/201609

/foo/bar/my/app/data/201607

/foo/bar/my/app/data/201606

/foo/bar/my/app/data/201605

/foo/bar/my/app/data/201604

/foo/bar/my/app/data/201603

/foo/bar/my/app/data/201602

/foo/bar/my/app/data/201601

/foo/bar/my/app/data/201512

/foo/bar/my/app/data/201511

/foo/bar/my/app/data/201510

for each of the identified directories, a set of commands will be issued. for example:

- "ls -l"

- "du"

- "ls -l > [login to view URL]"

these commands to be executed, should be executed from the shell so python can no execute own functions but has to leverage the shell.

- all events and actions performed by the scripts should be logged

- in an event of failure at any stage, the scripts should send and email to specified email address with the failure and a copy of the log that the script has generated as an attachement.

Python Shell Script Software Architecture

Project ID: #11980945

About the project

13 proposals Remote project Active 7 years ago

13 freelancers are bidding on average €24 for this job

Attix84

Hello, I'm a experienced python programmer and a long time linux user, so I can help you with your task. Feel free to contact me anytime Regards

€20 EUR in 1 day
(4 Reviews)
6.4
cracken

Hi, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements More

€49 EUR in 0 days
(27 Reviews)
5.0
zkutch

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

€29 EUR in 1 day
(26 Reviews)
5.1
cungthehung

Hi. I can do it for you with that price. I did many project for my employer and they are satisfied with my work. Hope we have a deal. Thank you!

€29 EUR in 2 days
(9 Reviews)
3.6
arator

I can accomplish your task - have lots of script examples for Linux Shell leveraging. So I will inly need to setup my scripts a little bit. Lets go?

€19 EUR in 0 days
(1 Review)
1.4
nrnieto

Just starting to use Freelancer. I use Python everiday at work.

€14 EUR in 3 days
(1 Review)
1.5
nics1990

A proposal has not yet been provided

€14 EUR in 2 days
(1 Review)
0.3
whosham

I'm communications and electronics engineer graduated from faculty of engineering Alexandria university. Diploma in software engineering from information technology institute in Egypt. Red Hat Certified Engineer CCNA More

€30 EUR in 3 days
(1 Review)
0.0
Junaidahmed111

A proposal has not yet been provided

€9 EUR in 1 day
(0 Reviews)
0.0