Saturday, December 06, 2008

a simple script to install remotely plugins and theme to wordpress

when I want to install a plugin or a theme on my distant server, I merely copy the URL in the clipboard and type in the terminal of my macbook
>plugin www.../theplugin.zip
To do this, just add to your .bashrc :
plugin () { ssh nrolland@xquant.net "cd /var/www/xquant.net/subdomains/blog/httpdocs/wp-content/plugins; wget -O toto $1; unzip toto; rm toto" } theme () { ssh nrolland@xquant.net "cd /var/www/xquant.net/subdomains/blog/httpdocs/wp-content/themes; wget -O toto $1; unzip toto; rm toto" }

1 Comments:

At 10:32 PM, Blogger nancy said...

Hi,
This is to let you know that right now I have seen your site & I must say it is really very informative & related to my topic also “finance”.
I am a finance webmaster & do have some good quality finance sites & blogs with high traffic & PR. And I love to do healthy content, banner, widget & article link exchange. Because as per my experience I believe through this you will get the high traffic & PR in front of Google.
If you are interested with my proposal please feel free to mail me with your finance sites & blogs urls. Apart from this you can come to gtalk for free chating….
My mail id….
nancysix00(at)gmail(dot)com

In return I do have some very attractive offers for you. And I will send mine through a following mail.

Waiting for your quick positive reply.

Cheers,
Nancy.

 

Post a Comment

Links to this post:

Create a Link

<< Home