loop script in python and bash shell script -- 2
€8-30 EUR
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.
Project ID: #11980945
About the project
13 freelancers are bidding on average €24 for this job
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
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!
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?