Welcome Guest, Not a member yet? Register   Sign In
Shell Commands...
#3

[eluser]Unknown[/eluser]
With all due repsect, OES, that's what I'm trying to figure out. I understand framework, and being able to do anything, based on permissions, but that's the whole problem. $anything()... I am trying to figure out how to segregate the output of Plesk to work with $anything(). If you catch my drift. Lemme pull up an output string from plesk on the shell and see if anyone has some ideas. I have no clue how to segregate this type of output:

Code:
General
=============================
Version:                                psa v8.3.0_build83080131.20 os_FedoraCor
Client status:                          OK On
Company name:                           Alphawolf
Personal name:                          Fr. Esau Patrick
Login:                                  wolverine
Phone:                                  915-222-5455
Fax:
E-mail:                                 [email protected]
Address:
City:
State/Province:
Postal/ZIP code:
Country:                                United States
Creation date:                          2008-05-17
Expiration date:                        Unlimited
Size of backup files in local repository:2.51 GB

Domains
=============================
Active domains:                         2
Domains :                               2
Subdomains:                             2
Disk space used by Domains:             93.3 GB
Traffic:                                273 MB/Month
Mailboxes:                              4
Redirects:                              0
Mail groups:                            1
Autoresponders:                         0
Mailing lists:                          0
Web users:                              0
Databases:                              5
Java applications:                      0

SUCCESS: Gathering information for 'wolverine' complete

Now, off the top of my head, for a simple account management system, I just need to be able to pull the General section apart and pick specific fields to display from what is above in the code section. Unfortunately, I just have no clue how to do that. I can do almost anything else now, but segregating and pulling specific parts of output that I need from the command line.


Messages In This Thread
Shell Commands... - by El Forum - 10-21-2008, 02:14 PM
Shell Commands... - by El Forum - 10-21-2008, 03:18 PM
Shell Commands... - by El Forum - 10-21-2008, 04:31 PM
Shell Commands... - by El Forum - 10-21-2008, 04:35 PM
Shell Commands... - by El Forum - 10-22-2008, 01:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB