Ditutup

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.

Kemahiran: PHP

Lihat lebih lanjut: using regular expressions, using regex in c, using expressions, regular expressions in c, regular expressions example, regular expressions c, regex is, regex in c, regex example, regex c, example regular expressions, c regular expressions, regex &, perfectly me, Data e try, vps, regular, Regex, php regex, openvz, Managment, expressions, c++ regex, c regex, need somebody status

Tentang Majikan:
( 0 ulasan ) Telford, United Kingdom

ID Projek: #280746

4 pekerja bebas membida secara purata $141 untuk pekerjaan ini

shrishtiin

Please see PM.

$200 USD dalam 2 hari
(5 Ulasan)
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 dalam 30 hari
(1 Ulasan)
3.0
subhomca

See our already developed web Site:- [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] Lagi

$115 USD dalam 4 hari
(0 Ulasan)
0.0
Vladimir3

I will help you.

$50 USD dalam sehari
(0 Ulasan)
0.0