Project Detail

Shell script automation bash  

Shell script automation bash is project number 452947
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: srinichal

Budget: $30-250

Created: 06/17/2009 at 7:43 EDT

Bid Count: 9

Average Bid:
$ 40

06/22/2009 at 7:43 EDT

Project Creator: macsilber
Employer Rating: 9.8182/109.8182/109.8182/109.8182/109.8182/109.8182/109.8182/109.8182/109.8182/109.8182/10 (11 reviews)

Bid On This Project
 

Description

Hello - I am awarding this project to the first person who posts a solution in the shortest number of lines of code. I herby undertake NOT to use anyone code who is not awarded the project. In other words I explicitly obtain the copyright to the posted winners code only once paid.

Here is the challenge.

I use SVN subversion and wish to automate the following task which is pasted below - you can see below the manual way I do it. I need a script that basically iterates in ONE directory through my files and runs the upgrade script that I do by hand listed below.

Winner - will be the person who posts the smallest code to do this solution - running from shell (bash) prompt - I will also accept php or perl solutions. I will pay the winner $30-.

PLUS WINNER GETS 10/10 FEEDBACK WITH POSITIVE COMMENTS.

====

[professorx]$ pwd
/home/petayexa/petayexa.com/wp-content/plugins
[professorx]$ svn ci -m ""
svn: Commit failed (details follow):
svn: Directory '/home/petayexa/petayexa.com/wp-content/plugins/redirection/.svn' containing working copy admin area is missing
[professorx]$ mv redirection/ redirection2
[professorx]$ svn update redirection
A redirection
A redirection/admin.css
A redirection/models
A redirection/models/group.php
===CUT FOR BREVITY
Updated to revision 103.
[professorx]$ cp -a redirection2/* redirection/
[professorx]$ svn ci -m "" redirection/
Sending redirection/admin.css
Sending redirection/ajax.php
Sending redirection/fileio/apache.php
===CUT FOR BREVITY
Transmitting file data .................................
Committed revision 104.
[professorx]$ rm -rf redirection2/
[professorx]$ svn ci -m ""
svn: Commit failed (details follow):
svn: Directory '/home/petayexa/petayexa.com/wp-content/plugins/wp-low-profiler/.svn' containing working copy admin area is missing
[professorx]$ mv wp-low-profiler/ wp-low-profiler2
[professorx]$ svn update wp-low-profiler
A wp-low-profiler
A wp-low-profiler/screenshot-2.png
A wp-low-profiler/wp-low-profiler.pot
A wp-low-profiler/readme.txt
A wp-low-profiler/wp-low-profiler.php
A wp-low-profiler/screenshot-1.png
Updated to revision 104.
[professorx]$ cp -a wp-low-profiler2/* wp-low-profiler/
[professorx]$ svn ci -m "" wp-low-profiler/
Sending wp-low-profiler/readme.txt
Sending wp-low-profiler/wp-low-profiler.php
Sending wp-low-profiler/wp-low-profiler.pot
Transmitting file data ...
Committed revision 105.
[professorx]$ rm -rf wp-low-profiler2/
[professorx]$ svn ci -m ""
svn: Commit failed (details follow):
svn: Directory '/home/petayexa/petayexa.com/wp-content/plugins/advertising-manager/.svn' containing working copy admin area is missing
[professorx]$ mv advertising-manager/ advertising-manager2
[professorx]$ svn update advertising-manager
A advertising-manager
A advertising-manager/class-upgrade.php
A advertising-manager/class-admin.php
A advertising-manager/OX
==CUT FOR BREVITY
Updated to revision 105.
[professorx]$ cp -a advertising-manager2/* advertising-manager/
[professorx]$ svn ci -m "" advertising-manager
Sending advertising-manager/advertising-manager.php
Sending advertising-manager/build.txt
Sending advertising-manager/lib/Advman/Template/Metabox.php
Sending advertising-manager/lib/Advman/Template/WP2.6/Edit/Ad.php
===CUT FOR BREVITY
Transmitting file data ............
Committed revision 106.
[professorx]$ rm -rf advertising-manager2
[professorx]$ svn ci -m ""
[professorx]$


Additional information submitted:

06/17/2009 at 12:48 EDT:
To clarify the logic

You need to first issue the following

[professorx]$ svn ci -m ""
svn: Commit failed (details follow):
svn: Directory '/home/petayexa/petayexa.com/wp-content/plugins/redirection/.svn' containing working copy admin area is missing

This will give you the first folder to work on (redirection)

and then find the first commit failure - then do the mv - update - copy and rm then


then run same ci again

do over till no more commit errors


Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

35

0 days

06-17-2009 10:30 EDT

Certified Linux System Administrator ready to work. I can start right away. Kindly check my PM. Regards. Nick.

help

 

30

1 day

06-17-2009 09:13 EDT

I can do the script

help

 

30

1 day

06-17-2009 09:02 EDT

please refer to PM.

help

 

30

0 days

06-17-2009 08:22 EDT

Please check the PM for file

help

 

30

0 days

06-17-2009 09:11 EDT

Script will be in your PM

help

 

30

1 day

06-17-2009 08:04 EDT

I finished shell project on this site yesterday. So I can done this job.

help

 

30

1 day

06-17-2009 08:58 EDT

(No Feedback Yet)

Please check PM

help

 

45

5 days

06-18-2009 05:50 EDT

(No Feedback Yet)

Hello, I am karthik Ramaswamy and I have 2Yrs exp in LAMP both python & perl.Of perl I have 1.5 yrs exp. I wud like carry out this proj for you and need bit more clarity on the requirement I have understood the requirement have understood it but want confirmation.

help

 

100

2 days

06-18-2009 14:21 EDT

(No Feedback Yet)

Hi I have done similar sort of automation, if u ask me I would use expect(a programming language) to automate this task. Once expect is in the picture rest is a piece of cake. Looking forward for a reply. Regards Surya

help


    Bid on this Project