Closed

loop script in python and bash shell script

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 > [url removed, login to view]"

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 > [url removed, login to view]"

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.

Skills: Python, Shell Script, Software Architecture

See more: bash python script convert, bash python loop, python loop script, software write mq4, software write chip epson, useful software write book, software write web specs, software write edid, software write websites idea, software write book images, software write books, software write protection, images loop script, free software write book, mysql loop script, software write book, scrolling image loop script, script votes automatically different, bash ftp upload script, shell bash keywords, php loop script, simple image loop script, python auction script, python csv script, software write technical manual

About the Employer:
( 0 reviews ) Finland

Project ID: #11731274

17 freelancers are bidding on average €39 for this job

€60 EUR in 1 day
(24 Reviews)
4.5
mohamadserag

Hello there, I'd like to know few details about the project if you're considering me, thanks and good luck with the project. Note: I can ONLY provide a python script.

€44 EUR in 2 days
(16 Reviews)
4.3
cracken

I have strong background in unix linux environment and can take good care of your project on time and with quality. Let me know the best of your time to discuss so we can move forward to the next level.

€29 EUR in 0 days
(11 Reviews)
4.3
VnBestSolutions

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Lo More

€87 EUR in 1 day
(7 Reviews)
3.8
Akinava

I did like that. I have a lot of experience. I think I am an excellent candidate for the project. Best regards Andrey.

€22 EUR in 1 day
(3 Reviews)
2.5
arrjon

Hello, I am an experienced python developer and I think it is possible to write a single python script which can do what you want. I know how to execute shell commands within python! I already have code to write More

€50 EUR in 2 days
(2 Reviews)
2.6
Nitla

A proposal has not yet been provided

€111 EUR in 3 days
(1 Review)
2.2
vavy

Hello! I can write such script for you. For Pyton-2.7.12.

€30 EUR in 7 days
(3 Reviews)
2.5
skriyaz09

I have been working as a software developer for more than one and half year on python scripting and shell scripting

€29 EUR in 3 days
(2 Reviews)
2.4
agastya21

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 More

€23 EUR in 1 day
(2 Reviews)
1.8
CoolTechie07

Hi, I can do this but pl clarify few things. 1. "so python can no execute own functions". What does 'no' mean? 2. If there is no connection between , how would you know whether commands failed? 3. At one place yo More

€29 EUR in 2 days
(1 Review)
1.8
trobert2

My day to dsy job involves writing bash/python scripts. I think I can deliver in a timely manner and would like the opportunity to take on the challenge. Thank you

€34 EUR in 2 days
(1 Review)
0.7
€23 EUR in 1 day
(0 Reviews)
0.0
santoshlashkare

A proposal has not yet been provided

€29 EUR in 5 days
(0 Reviews)
0.0
pbljoaquin

I am a full time backend Python Developer in my day work. :-)

€19 EUR in 1 day
(0 Reviews)
0.0
pheonixsolutions

Hello, I understand you want to create a shell script & python script to calculate the disk usage of a directory. Based on the scenario which you described earlier, I have created a small shell script which you coul More

€24 EUR in 1 day
(0 Reviews)
0.0
adarshdec23

Before getting to the proposal, I'll outline the requirements as I've understood them. You need : 1) A ksh script 2) A Python script Both of these have the same functionality and should work independent of More

€25 EUR in 2 days
(0 Reviews)
0.0
iticy

ITICY Technologies is an IT Service, leveraging company specializing in GNU/Linux and open-source. AT ITICY Technologies we see our customers as a part of the solution rather than part of the problem. We have all the n More

€23 EUR in 1 day
(0 Reviews)
0.0