Lukket

Regular Expressions - VPS Managment Facility

I am running OpenVZ, on CentOS 5, i have developed 99% of the script and im looking for somebody who can VERY QUICKLY build me a small regex / Regular Expressions peice of code that will take data such as our command "vzlist" which displays a specified VPS.

The outcome would be:

VEID NPROC STATUS IP_ADDR HOSTNAME

110 55 running [url removed, login to view] [url removed, login to view]

120 54 running [url removed, login to view] [url removed, login to view]

We run "vzlist <veid>" so we only get 1 result i.e.

VEID NPROC STATUS IP_ADDR HOSTNAME

110 55 running [url removed, login to view] [url removed, login to view]

Then using the array[1] we can pull the line and using explode() we can run it working perfectly :) However when we try to run the same script on VEID: 120 it doesnt work, as there are more spaces between <IP> and <HOSTNAME> which makes the data that was $vps[6] for hostname $vps[8] for example! so our script cant be static,

We need this building VERY quickly and VERY cheaply! looking to get it done by the end of tonight/tommorow.

i have uploaded the file i have already that IS currently working. but only on VEID: 110 and ones that match the ammount of spaces in them.

Færdigheder: PHP

Se mere: using regular expressions, using expressions, regular expressions example, regex is, regex example, regex c, example regular expressions, perfectly me, vps, regular, regex, php regex, openvz, managment, expressions, c regex, need somebody status, regex php, build vps, php run command, vps server php, openvz centos, data displays, php file match, looking vps

Om arbejdsgiveren:
( 0 bedømmelser ) Telford, United Kingdom

Projekt-ID: #280746

4 freelancere byder i gennemsnit $141 for dette job

shrishtiin

Please see PM.

$200 USD in 2 dage
(5 bedømmelser)
4.4
icsonweb

Hello I have seen your project requirements and Scope, im interested to working on this project I look forward to hearing from you. Thank you for your consideration. Thank you, icsonweb

$200 USD in 30 dage
(1 bedømmelse)
3.0
subhomca

See our already developed web Site:- http://www.breakthruprayerministries.org http://www.wipp.org http://www.webnewtons.com http://www.flowervalley.co.in/ http://www.grassoportal.com http://www.giscorporate.com Mere

$115 USD in 4 dage
(0 bedømmelser)
0.0
Vladimir3

I will help you.

$50 USD på 1 dag
(0 bedømmelser)
0.0