mylhat

msg:3856294 | 12:50 am on Feb 24, 2009 (gmt 0) |
I've never used Parallels pro and I'm unsure what the exact format of the /etc/virtualhosting/mappings/domainmap is but the following may work: for i in `cat sitenums`; do grep $i[^0-9] /etc/virtualhosting/mappings/domainmap; done The $i[^0-9] should match any line that contains the output of the sitenums file not followed by a number. I've run a test and it seems to work: [root@TEST htdocs]$ cat test2.txt site3 [root@TEST htdocs]$ cat test3.txt site3 alpha site31 beta site32 charle site33 delta [root@TEST htdocs]$ cat shell.txt for i in `cat test2.txt`; do grep $i[^0-9] test3.txt; done [root@TEST htdocs]$ ./shell.txt site3 alpha
|
jeffatrackaid

msg:3860173 | 2:27 am on Mar 1, 2009 (gmt 0) |
uncobeth, Looks like you are using Ensim? It has a command line tool sitelookup run sitelookup -a domain to get a list of all domains Maybe something like this will work:
sites=`sitelookup -a site_root¦sort`;for s in $sites;do find $s/var/www/html -type d -name wp-includes;done
That's a pipe to sort...to put them in alphabetical order for you.
|
uncobeth

msg:3860183 | 2:55 am on Mar 1, 2009 (gmt 0) |
Thanks. I'll give it a try.
|
jeffatrackaid

msg:3862077 | 10:05 pm on Mar 3, 2009 (gmt 0) |
uncobeth did that work for you?
|
uncobeth

msg:3862140 | 11:06 pm on Mar 3, 2009 (gmt 0) |
I never got to try it. Someone from another forum wrote out a perl script that would get the information I needed. I have to learn how to program at some point!
|
jeffatrackaid

msg:3862149 | 11:18 pm on Mar 3, 2009 (gmt 0) |
I think it will do it. I like these simple one-liners. I use a ton of them for various tasks. Learning how to do a bash loop is useful for anyone working at the command line on Linux.
|
uncobeth

msg:3862179 | 12:12 am on Mar 4, 2009 (gmt 0) |
I need to ask about your services. I wanted to get someone to upgrade one server from Ensim Pro 10.3.0 to 10.3.3. Is it ok to ask about that here?
|
|