Using Conky with multiple MPD servers

Hello gang.  I have 3 MPD servers that I connect to from my laptop (one is running on my laptop, 2 are on remote servers), and I'd like to have Conky report "now playing" info from whichever one is active at any given moment.  My issue is with dynamically identifying the host/port within Conky.
I have a Python script that returns the host and port of the active MPD server, which is called like this:
$ python MpdInfoHandler.py -host
this.is.myhost
$ python MpdInfoHandler.py -port
6600
So, I tried putting this in my conkyrc:
mpd_host ${execi 300 python /pathtoscript/MpdInfoHandler.py -host}
mpd_port ${execi 300 python /pathtoscript/MpdInfoHandler.py -port}
This doesn't work - Conky seems to interpret the host and port as the actual strings appearing on each line.  So, my question is: is there a way to assign the output of the script calls to "mpd_host" and "mpd_port"?  Or does this only work when dealing with stuff underneath the "TEXT" section in conkyrc?
Thanks all

Hello gang.  I have 3 MPD servers that I connect to from my laptop (one is running on my laptop, 2 are on remote servers), and I'd like to have Conky report "now playing" info from whichever one is active at any given moment.  My issue is with dynamically identifying the host/port within Conky.
I have a Python script that returns the host and port of the active MPD server, which is called like this:
$ python MpdInfoHandler.py -host
this.is.myhost
$ python MpdInfoHandler.py -port
6600
So, I tried putting this in my conkyrc:
mpd_host ${execi 300 python /pathtoscript/MpdInfoHandler.py -host}
mpd_port ${execi 300 python /pathtoscript/MpdInfoHandler.py -port}
This doesn't work - Conky seems to interpret the host and port as the actual strings appearing on each line.  So, my question is: is there a way to assign the output of the script calls to "mpd_host" and "mpd_port"?  Or does this only work when dealing with stuff underneath the "TEXT" section in conkyrc?
Thanks all

Similar Messages

  • How to configure one TREX host with multiple index servers ?

    Hi All,
    Does anyone know how to configure TREX on the one host,
    with multiple index servers ?
    Reason for this is to make better use of resources available on the host server(4 Gig, 4 Processor, Windows2003), to improve the search performance of
    our KM content for portal users.
    I am using TREX 7 and have not been able to do this,
    despite reading the Single and Distributed install
    documentation.
    Any help would be appreciated.
    Regards,
    Andres

    Hi Andres,
    To make use of the RAM a Server provides you have to run two indexserver processes (each can then consume 2 GB);
    Proceed like this:
    1. Go to TREXdeamon.ini; check if section [indexserver2] is there (it is already provided, but not active in standard installation)
    2. In TREXdeamon.ini go to
    [daemon]
    references sections below
    programs=nameserver,preprocessor1,indexserver1,queueserver,alertserver
    and add indexserver2 here. Restart TREX; second porcess is then started; can be checked in TREX monitor in Portal as well
    3. To distribute existing indexes to the new process, start TREXadmintool and go to Index: Landscape
    Go to the last two columns and move the indexes (move master here/secondary mouse click)
    If you don't distribute the indexes the new index server process will be regarded when an new index is created.
    Hope this helps!
    cheers
    Bettina

  • BSPs configuration with multiple apps servers

    Hi Masters,
    This is regrarding configure ICM and BSPs on our production box with multiple application servers.
    We have our production box in a cluster environment.
    The central instance is dbciSAP and apps servers are sapaps2 thru sapaps6. The database is on shared disks. Whenever the central instance fails sapaps2 takes the control and become as dbciSAP but the main dbciSAP never become a application server when ever sapaps2 acts as dbciSAP. Since we have configured load balancing concept in production environment the users can login to system thru any application server. This is waht our environment.
    As part of our production box to SAP 4.7 upgrade from 4.6C, we are asked to configure the environment to deploy BSPs. We have successfully configured and deployed the BSPs in our DEV and QAS system  (Both are central instances with no application servers) except production box which is due in the next month.
    The process we follow to activate BSPs is as follows:
    1.Define an ICM service port in /etc/services file.
    2.Add the ICM related parameters in instance profiles.
    3.Make sure the ICM status is active in SMICM tx.
    4.Activate the BSP services in SICF as per OSS note 571484.
    Now, the question is how to configure the same ICM service and activate the BSPs since we have multiple multiple application servers.
    Subsequently What I am enquirying is:
    Do I need to define ICM service ports on each and every hosts where the application servers are running?
    Do I need to make changes to each and every instance profile of the application server?
    What are the differences in configuring ICM services on central instance and application instances?
    Appreciate any help in this regard.
    Thanks and Regards
    Murty Patchipala

    Grasshopper,
    I think what you should really read up on is the SAP WebDispatcher.  If are serious about running BSP/ICM across multiple app servers, this is the key technology:
    http://help.sap.com/saphelp_nw04/helpdata/en/42/5cfd3b0e59774ee10000000a114084/frameset.htm  This may also answer some of your questions about profile parameters.
    Other than that I can share what we did.  We did activate the ICM and services on all app servers and central instance.  The service ports of the individual servers aren't that important now because of the WebDispatcher (at least they aren't visible to the user).
    Yes we did make some of the ICM profile changes in each instance profile.  If your settings are the same, consider using the default profile.   Are their particular settings you are interested?  I will look over ours, but I don't remember any huge differences from APP server to Central Instance.

  • Session cleanup issue with multiple Application servers

    Hi ,
    I am facing a strange problem with multiple application servers. The java Webdynro session does not get cleaned up completely when user closes the browser ( without using logoff ). On re-login it gets handle of old session and then fails for consecutive view on other webdynpro iviews with an invalid session error. It again starts working with a refresh event.
    Any ideas/suggestion if you have seen something similar before ?
    Thanks and regards,
    Amit.

    Hi Amit
    It seems that issues is not server related, but caused by your client browser. I know, for example, that IE8.0 keeps user session even if two separate browser instances opened on the same client machine. IE 7.0 and lower behave differently - they are separate user sessions per browser instance.
    BR, Siarhei

  • Integrating BIP with multiple LDAP servers

    Hi,
    my question is very simple. In Admin->Security Configuration->Security Model section i've setted Security model combobox with LDAP value. Then i've filled all LDAP information field (for example:URL). All works. But in my rpd i 've multiple LDAP servers (multiple URL) and in the form i can insert information about only one LDAP server.
    Is it possible configure BIP with multiple LDAP servers?
    Thanks
    Giancarlo
    P.S. I'm using OBIEE 10g

    Hi,
    my question is very simple. In Admin->Security Configuration->Security Model section i've setted Security model combobox with LDAP value. Then i've filled all LDAP information field (for example:URL). All works. But in my rpd i 've multiple LDAP servers (multiple URL) and in the form i can insert information about only one LDAP server.
    Is it possible configure BIP with multiple LDAP servers?
    Thanks
    Giancarlo
    P.S. I'm using OBIEE 10g

  • APD using Query with multiple structures as a data source

    All,
    I want to set up an automatic process which executes a query and exports it to a shared drive as a csv file. I have tried various options , when I try to use APD to set up the extract, I get an error and this is because the query that I am trying to use has Strucutres in both rows and columns. Hence, I am unable to use this option. I tried RSCRM_BAPI, It works well, but there is an issue with scheduling this in Process chain. I created an event and scheduled this as a job to trigger after "event" as per SAP instructions, but the job does not exist and it is not possible to trigger it through the Process chain unless the variables are hard coded in the query which I do not want to do.
    Can any one tell me if there is a way to deal with APD using Query with multiple structures?
    Would really appreciate if some one can give me the right solution...
    Thanks

    Hi Tanu ,
    APD is an option but its not very good with large amount of data or hiearachies or if you have attributes in you query structure .
    One more option for this requirement is use of report program using function module RRW3_GET_QUERY_VIEW_DATA .
    This will work fine with multiple structure etc .
    There are some overheads with this FM  ex: if amount of data is too much then program will give dump .Solution for that is we call the FM in LOOP by diving amount of data need to be fetched .ex:  we can read data quarter wise.
    For using this function module what you can do is write an ABAP program (At SE38 ) .which will call this FM and then write the output into a flat file which you can save at application server (AL11) .From there other system can read it .
    To automate this whole process you can further add all the report programs into a process chain (RSPC) which can be schedule as per requirement .
    To pass input parameters you can use variants that will pass the values to the report .
    Check thi link for sample code :
    [http://www.tricktresor.de/content/index.php?navID=696&aID=496]
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Run Admin Server with multiple Managed Servers each using different userid?

    We currently run separate WebLogic domain instances for each business application in a Unix environment. Each one is created using a unix userid unique to that application and which owns all the files and is used to run the process when that particular WebLogic instance is started up. We have run this way for a while.
    I am considering altering our approach to the one that is recommended, i.e. in our Production environment we would run a single Admin instance with numerous managed servers. One issue I'm stuck on is the fact that in our current environment, each application has a different unix userid that owns the files making up the WebLogic domain instance and that WebLogic instance is run under that userid.
    I've investigated and experimented using WebLogic 10.3 preview and WebLogic 10.0, but I haven't been able to determine what I have to do to make each managed server's files and processes belong to a different unix userid, if that is even possible.
    Is there a way, using the recommended approach, where there is a single Admin instance that has multiple managed servers whose files and processes are owned by different unique, unix userids?
    If not, how would you separate access to each of the Managed Servers so that the programmers who maintain them don't have access to Managed Servers that they are not responsible for?
    Thanks for any help or suggestions.....

    Hi:
    I played with this stuff and I found that this will work, without the Location elements:
    <IfModule mod_weblogic.c>
    MatchExpression /app1 WebLogicHost=server1|WebLogicPort=7003
    MatchExpression /app2 WebLogicHost=server2|WebLogicPort=7003
    </IfModule>
    Also this will work too, with no entries inside the IfModule element:
    <Location /app1 >
    SetHandler weblogic-handler
    WebLogicHost server1
    WebLogicPort 7003
    </Location>
    <Location /app2 >
    SetHandler weblogic-handler
    WebLogicHost server2
    WebLogicPort 7003
    </Location>

  • How to use OSD with Multiple DPs to remote locations

    Hi
    My SCCM 2012 R2 Primary site is located on my corporate office but i need to use OSD for multiple branch locations in different subnets.in My Organization there is network level DHCP server rather than Windows DHCP...
    What would be the complete configuration in this case .. can some one provide the steps..
    Shailendra Dev

    Hi,
    The best way to forward the PXE boot requests to the DP/PXE server is to use IP Helpers in the routers/switches. I assume that the branch locations are without a DP. You can use DHCP scope options in the DHCP servers as well but you will end up with problems
    when PXE-booting machines that run UEFI becuase it is not the same bootfile used and it is not really supported.
    Maybe standalone media could be an option where you have the most of the TS on a USB stick/Drive.
    Regards,>
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • SharePoint writer metadata information in a SharePoint farm with multiple WFE servers.

    I  am working on Microsoft Volume Shadow Copy Service (VSS) framework. I know that in a 3-Tier SharePoint environment the SharePoint writer metadata on WFE server gives all the information related to that farm.
    My question is -
    a) How would i get all the information related to the SharePoint farm from the SharePoint writer metadata in an environment where multiple WFE servers are configured?
    b) Is it possible that in a SharePoint farm where multiple WFE servers are deployed, SP writer of only one WFE server (Master/Main server) contains all the information about the respective SP farm servers in its metadata?

    Hi  Aaditya,
    All Writer Metadata is stored in Writer Metadata Document which is produced by writer. The backup application uses the  Writer Metadata document to get information about that writer, the data it owns,
    and how to restore that data. Once the writer produces it, the Writer Metadata Document is a read-only document to the backup application.
    The Writer Metadata Document contains three sets of data: writer identification and classification information, writer-level specifications, and component data.
    For getting Writer Metadata, you can use
    IVssBackupComponents::GetWriterMetadata method.
    For more  information, you can refer to the articles:
    http://msdn.microsoft.com/en-us/library/aa384992(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library/aa384996(v=vs.85).aspx
    http://blogs.technet.com/b/dpm/archive/2011/06/02/explaining-sharepoint-data-source-enumeration-with-data-protection-manager-2010.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Using HLEVEL with multiple hierarchies

    Hi all,
    Is there a way to pass a parameter to the HLEVEL keyword to specifiy which hierarchy (Parent H1,H2, H3, etc.) to use when pulling the HLEVEL?
    We would like to use HLEVEL for report formatting however we need the ability to choose the hiearchy.
    Thanks!
    Mike

    Mike,
    please check the answer in this other post:
    EVPRO with multiple hierarchies
    It's for the MS platform, but it's the same for Netweaver.
    EVPRO can only retrieve the HLEVEL for the first hierarchy. You need to maintain further custom properties if you want to get the level of a member within multiple hierarchies.
    Regards,
    Simmaco

  • Application Server slowdown with multiple proxy servers ?

    Our environment has our iAS boxes talking to iWS web servers which are front-ended with iPlanet Proxy servers (Proxy 3.53 I believe). We are seeing significant slowdown if we try and hit our web apps through the proxy as opposed to going directly to the web server (bypassing the proxy servers). One of our "proxy" guys recalls hearing that there is an issue with the app server's handling of sessions if requests from the same user come in to the web server (and by extension the app server) from multiple proxy servers with different ip's. Has any body ever encountered this or does any body know if the app server has an issue handling the same sessions whose requests come from different ip addresses (different proxies)?

    The proxy work with HTTP 1.0 and the webserver with HTTP 1.1.
    This difference could be the cause of your problems.
    "David Fuelling" <[email protected]> escribio en el mensaje
    news:[email protected]..
    Our environment has our iAS boxes talking to iWS web servers which are
    front-ended with iPlanet Proxy servers (Proxy 3.53 I believe). We
    are seeing significant slowdown if we try and hit our web apps through
    the proxy as opposed to going directly to the web server (bypassing
    the proxy servers). One of our "proxy" guys recalls hearing that
    there is an issue with the app server's handling of sessions if
    requests from the same user come in to the web server (and by
    extension the app server) from multiple proxy servers with different
    ip's. Has any body ever encountered this or does any body know if the
    app server has an issue handling the same sessions whose requests come
    from different ip addresses (different proxies)?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Broadcasting with Multiple Application Servers

    Hi, If I schedule a query broadcast to fill olap cache and I have multiple production servers which App server(s) will get the cache filled?  What ever server the broadcast job runs on?
    If anyone can give some insight it is greatly appreciated.
    Thanks,
    Ken Murray

    1. If the OLAP cache is set to main memory than the OLAP Cache only gets created on the server in which it is run? So if I have 4 servers with load balancing then it is possible for the next 3 people who run the query to not benefit from the initial OLAP Cache created.
    <i>--> Next 3 people will benefit only if they log in to the same server, if cache was created in app server 1 and next 3 login to app server 2, 3 and 4 they wont hit the cache from app server 1.</i>
    2. If I change it to BLOB than any of the query runs on any server would access the initial OLAP Cache Entry that was created?
    <i>--> Yes.</i>
    3. Where is this BLOB Cached created and made available from? The DB Server or on 1 of the APP Servers?
    <i>--> DB Server</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/00/241da12ef84f40bb6ecd3ae73d8b58/content.htm
    4. If SAP can make BLOB Cache available to all servers then why couldn't they make Main Memory Cache available to all servers?
    <i>Main memory is specfic to a server like how you have RAM for your PC, this is not accessible by other system. BLOB is Database and can be accessed by multiple systems.</i>
    Thanks.

  • Windows XP Using iTunes with Multiple Identities

    Hi. I'm using Windows XP and iTunes 7. I have my music files on an external drive, but all my library files are in My Music folders. I'd like to share all the music with other users of this PC (my kids) from their own identities. I was able to import the music, but album artwork that iTunes does not have that I imported on my own does not shows up on the new identity.
    Also, I am guessing that, if I add a song with the original identity, it will not show up in iTunes with the new identity unless I add the library, folder, song, etc.
    Is there a proper way to share iTunes music on the same PC with multiple identities?
    In advance, thanks for your help.

    hiya!
    hmmmm. it might well be the Windows Fast User Switching causing his problem (although he isn't getting the usual problem i see associated with Fast User Switching):
    iTunes for Windows: about Fast User Switching with Windows XP
    love, b

  • Creating Training manuals using FM with multiple SME's authoring

    Greetings from Norway!
    I am currently considering switching from an InDesign/InCopy workflow over to TC2. Our manuals are heavily dependent on SME input and participation, in fact they write a good deal along with the tech writers.
    Is is possible to have SME contribution using Frame if only the techwriters actually have Frame on their workstations? I have read alot and see that if you use WebDAV you can save the Frame file as a .xml file. Can the SME's write content in an xml format and then have the tech writers import it into the long document in Frame?  If my SME's want to write a new chapter outline for me to follow, is this possible with WebDAV?
    To get 2 licenses in Norway is going to cost us $4,500, so I want to make sure that I can still have the SME input without any problems. We have been using InCopy for this purpose, but are having too many little problems and I would like to move towards Frame.
    ANY input on working with Frame with multiple authors, some of which are not using Frame on their workstations, would be greatly appreciated!
    Thanks in advance,
    kathryn

    katinnorway wrote:
    Greetings from Norway!
    I am currently considering switching from an InDesign/InCopy workflow over to TC2. Our manuals are heavily dependent on SME input and participation, in fact they write a good deal along with the tech writers.
    Is is possible to have SME contribution using Frame if only the techwriters actually have Frame on their workstations? I have read alot and see that if you use WebDAV you can save the Frame file as a .xml file. Can the SME's write content in an xml format and then have the tech writers import it into the long document in Frame?  If my SME's want to write a new chapter outline for me to follow, is this possible with WebDAV?
    To get 2 licenses in Norway is going to cost us $4,500, so I want to make sure that I can still have the SME input without any problems. We have been using InCopy for this purpose, but are having too many little problems and I would like to move towards Frame.
    ANY input on working with Frame with multiple authors, some of which are not using Frame on their workstations, would be greatly appreciated!
    Thanks in advance,
    kathryn
    Hi, Kathryn:
    If you're currently outputting your manuals from InDesign - whether to paper or PDF - there's probably no immediate or compelling need to convert to FrameMaker.
    You'll have the same problems with SMEs maintaining strict style usage, whether in InCopy or Word for import into InDesign or FrameMaker, and you'll have the same problems with SMEs working in FrameMaker directly, even if your company should win a FrameMaker site license in a lottery.
    Even in departments whose members are experienced technical writers, maintaining rigorous style requirements isn't automatic or easy.
    One key reason to consider the Technical Communications Suite is its ability to create help systems. A related reason is its ability to create single-source material for reuse and/or multiple outputs; FrameMaker can work with content management systems, XML, and DITA. All of these are not trivial to implement.
    RoboHelp can work with Word files, if help systems ability is important to you. FrameMaker wouldn't be necessary.
    Though InDesign can work with XML, it currently isn't suited to the kind of XML authoring that FrameMaker is. It's not easy to author for XML in InDesign or InCopy, as it is in FrameMaker, and even in FrameMaker, it's not without problems. InDesign can't do DITA.
    It might be worthwhile to create a small-scale trial in which your SMEs work in Word or InCopy, or some other application whose output maintains style names. Import that material into you InDesign templates, then analyze the problems.
    One major problem will undoubtedly be inconsistent tagging of material with proper styles. A close second will be attempts by the users to apply custom formatting (overrides) to the content, rather than using styles. Other problems include inconsistent use of lists of items, and inclusion of items in running text.
    If you can define a simple set of styles and requirements that the SMEs agree to follow, importing their material to any style-conscious application will require less manual effort.
    If the SMEs will need to revise material that the technical writers send back, you'll want to experiment with round-tripping from your publishing application via RTF or Word file format and reimporting from whatever editing application the SMEs use. If SMEs will agree to edit in Acrobat, this is one way to avoid the inevitable round-tripping artifacts, though it requires manual attention from the technical writers.
    Using a single-flow layout - "single story" in InDesign terms, "single text flow" in FrameMaker terms, rather than the kind of discontinuous graphic-designer's visual layout of pasted page objects and separate stories, will make it easier to reflow revised content. This is the usual way that FrameMaker users work. InDesign's improved long-document tools make it possible to work the same way.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Repeat "Detail a" section when using "Format with Multiple Columns" layout

    I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
    Detail a (1)_____Detail a (2)
    Detail b (1-1)___Detail b (2-3)
    Detail b (1-2)___Detail b (2-4)
    --Detail b (1-3)___Detail a (3)
    Detail a (2)______--Detail b (3-1)
    --Detail b (2-1)
    --Detail b (2-2)
    Thx, Scott

    the format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
    i think you may want to use a sub report

Maybe you are looking for

  • How to connect to the  multiple system in the same environment

    Hi Everyone , We are integrating SAP EP and BOE . We are facing SSO problem ,as there are 2 system in same environment . Suppose we have XX1 and XX2 as BW backend system . IF Default entry on server is kept blank then we get : "u2022  Account informa

  • How to delete one record out the two?

    Hi all, A have an Orders table: ACCOUNT, ORDER_NO, ORDER_DATE I have a few cases where there two accounts have the same ORDER_NO. I dont think this is right in a traditional Orders/ Orderline relationship! For Example: ACCOUNT     ORDER_NO     ORDER_

  • How do I create a UDL for a Cloud-based Database like Amazon ?

    I have been using UDL connections to SQL Server without any issues. I was just asked to look in to Cloud-based databases, but I'm not sure ho to create a connection to the databases once they have been created. Has anyone done anything like this? If

  • Please help!  My ipod isn't recognized by computer or itunes

    Thank you in advance for reading this, I'm about to lose it. I have spent 12 hours trying fix my problem, and nothing seems to work. I did everything suggested by the apple site, and other misc. sites out there. Last week I put music on my ipod video

  • Foxit Reader won't work with HP Laptop Help and Support Guides, any suggestions?

    New HP Pavilion with Windows 7 x64 I downloaded Foxit Reader and installed it and then Uninstalled Adobe Reader to save space. Then, although it will open my PDF's in "My Documents", it will not open the Guides or Learning PDF's in the HP Help and Su