Problem with a gmail conky script

I was looking for a long time for a conky script that displays not just email count, but their text, too.
I finally found a nice one here: http://mishotips.blogspot.com/2012/08/c … ailpl.html
The problem is, when it is called by conky, the text formatting (colours, etc) within that script is being ignored. Here's the result:
http://s3.postimg.org/x1u0fp72r/gmail.png
Can this be helped somehow? I would thin yes, since the author put those tags in it, but I don't know how.
Last edited by Lockheed (2014-02-23 20:50:28)

How are you calling the script in your conky?
It looks like you are using exec or execi where you should be using execp (or execpi).
The p versions of exec parse the output of the script whereas the normal versions don't.
http://conky.sourceforge.net/variables.html

Similar Messages

  • Problem with shell commands and scripts from an Applescript Application

    Hi-
    I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
    There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
    I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
    The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
    I am also using "try" around each of the items.
    What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
    Thanks so much!

    See here for an explanation of the syntax.
    (20960)

  • "There is a problem with this installer package - script is required to complete install," - please can someone clarify script supplied.

    I have downloaded EMET 4.1 but it will not install -
    "There is a problem with this Windows installer package. A script required for this install to complete. Contact your support personnel or package vendor."
    I have seen the same problem answered in the support section with a script posted as follows, and wondered if it would solve my problem - only  there is no explanation with it and I have no idea what to do with it! Forgive my ignorance but could someone
    please explain what to do with it please? Many thanks.
    (I looked up the other thread but I was no wiser.)
    This thread is probably a dublet of http://social.technet.microsoft.com/Forums/pt-BR/ab0ee94b-ce61-4a62-8478-41a1e8ac39e2/emet-40-installation-fails-with-error-code-1720?forum=emet
    Please create and check a verbose Installer logfile: msiexec.exe /?
    _FA2E7A16_A819_4F3A_AB7E_0A039BE81BD7 refers the Custom Install Action Blob _6A58D16B437E5B268B3B9D09B8746240 which conatins this vb script in EMET 4.1:
    ' Begin
    REM kill the old EMET 3.0 Notifier process if running (upgrade scenario)
    strAppName = "emet_notifier.exe"
    Set objProcesses = GetObject("winmgmts://" & strMachine).ExecQuery("SELECT * FROM Win32_Process WHERE Caption LIKE '" & strAppName & "'")
    For Each objProcess In objProcesses
        intRetVal = objProcess.Terminate(0)
    Next
    REM kill EMET Agent 4.0 process if running (re-installing scenario)
    strAppName = "emet_agent.exe"
    Set objProcesses = GetObject("winmgmts://" & strMachine).ExecQuery("SELECT * FROM Win32_Process WHERE Caption LIKE '" & strAppName & "'")
    For Each objProcess In objProcesses
        intRetVal = objProcess.Terminate(0)
    Next
    ' End

    Managed to get the installation sorted. Go to Control Panel, and where you have a list of all installed programs, repair all the Apple/Itunes related programs. Installation worked fine after that. Hopefully it helps you out too!

  • 3 big problems with my gmail and my iphone 4 inbox...

    I know these are not new issues to most people, but I just haven't found any solutions yet. I've had 3 main issues with my gmail and iphone 4 inbox:
    1) I've had the same issues of these weird messages from 1969, and also from 2000. I've done everything mentioned on every forum available from hard reset of the phone and computer to switching everything imaginable on or off related to contacts, mail, threads, etc., deleting and resetting the account on my phone and computer, going to gmail help pages and adjusting imap, you name it, I've done it. They all seem to correct the problem temporarily, but then eventually at some point, these emails return and disappear by themselves at some point with no rhyme or reason and there's nothing I can do about them when they're present. I've called Apple several times and they always say the same exact thing about hard resetting, but it's never a long lasting solution.
    2) After I delete multiple messages from my inbox, they often reappear as unread messages and I have to open and delete each one again which is really annoying.
    3) Often I open an email and click on delete. The garbage can lid opens and the screen freezes with the lid open. I have to hit home to get out. When I go back to the inbox, it's white with nothing present on the screen. I have to go back and forth between apps and the inbox and eventually the inbox emails will reappear.
    If anyone has any new solutions to any of these problems, please share the wealth because I'm tempted to stay with my Verizon blackberry and cancel this iphone/ATT account since I've never dealt with any of these persistent problems with other phones.
    Thanks!

    Actually there'll be something like this:
    +3.3v -> 28A
    +5v -> 32A
    +12v -> 22A
    -5v -> 0.5A
    -12v -> 0.5A
    Please check again.

  • Problem with iPad3 gmail.

    Just got the iPad3 and having the problem to set up the gmail account. No problem in setting up yahoo email.
    I have done with enabling imap and also POP. Entered email addresses to both smtp and imap and also password.
    The feedback is always something like wrong password in imap or wrong setting with Gmail?
    I have not use any mobile devices to access my gmail before and could this be the possible that gmail did not enable my account a mobile device to access? I seen the setting that one of the mobile device is iPhone available.

    Had the same problem with my iPad 3 and gmail....problem ended up being that I had the 2 part verification turned on for google/gmail.
    Here's a link to a video made by google that describes how to generate and then enter an "application specific password" for your iPad...once you have this password, you can use the included gmail set-up and simply enter the long password that has been generated into the password field when setting the profile up and it will do the rest for you and should work.
    Note the video starts at 2:13 because that's the relevant part
    http://www.youtube.com/watch?v=zMabEyrtPRg&t=2m13s 
    Hope that helps.

  • Calling all script experts - Wierd problem with a previously perfect script

    Hi,
    As script which used to work fine is now causing me big problems.
    The line that is causing the problem is highlighted in the script editor as:
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    On running the script I get the following message:
    Finder got an error: Can't make every file of entire contents of alias "Atlas Mac-Mini:Users:design:Desktop: TESTpictures - for script:Landscape copy:" into type reference.
    As I said the script used to work fine, A couple of members of this forum have tried to rewrite the script for me (thanks to them) but I'm still gettig the same message. I'm wondering is there something wrong with my system (which otherwise works fine).
    I'd appreciate any help and advice on what may be going wrong.
    Thanks, Ray
    In case it helps, here's the full script (which adds the file's path to the filename):
    set master_Folder to (choose folder with prompt "Choose a folder for filename processing") -- Select folder.
    set path_Depth to ((choose from list {1, 2, 3, 4, 5} with prompt "How many paths in these filenames?") as number) -- Select folder depth.
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    repeat with i in file_List
    set {oAStId, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set fileItemsList to text items of (i as string) -- List of individual path items [disk, folder(s), file] of file of file_List.
    set fileItemsCount to count fileItemsList -- Number of individual path items.
    set fileItemsList to text items (fileItemsCount - path_Depth) through fileItemsCount of fileItemsList
    set fullFileName to last item of fileItemsList as string -- Obtain full file name.
    set AppleScript's text item delimiters to "."
    try -- Obtain file name and file extension.
    set file_Name to ((text item 1 of fullFileName as string) & "-") -- Obtain only file name, less any file extension..
    set file_Ext to ("." & (text item 2 of fullFileName as string)) -- Obtain file extension.
    on error -- Sets up a "If you can't do case 1 then try this" .
    set file_Ext to "" -- If no File Extension exists, set 'file_Ext' to "".
    end try
    set AppleScript's text item delimiters to "-"
    -- Change name of file.
    set name of i to (file_Name & ((text items (1) through ((count fileItemsList) - 1) of fileItemsList) as string) & file_Ext)
    set AppleScript's text item delimiters to oAStId
    end repeat
    Various   Mac OS X (10.4.6)  

    Hello RaymondTomin,
    I don't see any reason for Finder to throw such an error in the said line. Perhaps something is wrong in your system.
    Try the following test scripts. If they fail on any folder you choose, I'm afraid something is surely wrong in your system, not in your script code.
    (If they fail, create new user account and try them in it to narrow down the problem cause. Also try repairing disk and/or repairing permissions.
    And it might help as well to clear some caches by using, e.g. Onyx:
    http://www.titanium.free.fr/pgs/english.html
    Or even to re-apply OSX's Combo Updater:
    http://www.apple.com/support/downloads/
    Good luck
    H
    -- TEST 1
    set fda to choose folder
    tell application "Finder"
    items of item fda
    end tell
    -- END OF TEST 1
    -- TEST 2
    set fda to choose folder
    tell application "Finder"
    try
    items of item fda as alias list
    on error
    items of item fda as alias as list
    end try
    end tell
    -- END OF TEST 2
      Mac OS 9.1.x  

  • Having problem with receiving gmail message in my appropriate email folders.

    Hello,
     I am new to this forum and I have a question.
     Yesterday I was having problems with my BB Torch, the touchpad was doing funny things like jumping lines etc.
     So, I did a force restart, (remove battery for a minute).
     After I did that, all my gmail emails disappeared from the appropriate gmail icons. I have 2 gmails setup and none of the messages are there.
     They are still coming under the general MESSAGES folder where I can retrieve them but nothing under the gmail icons.
     Is there any way to fix it?
     I was really happy with the separate gmail folders and everything worked fine until now.
     Just FYI...  I did an update to the Blackberry software couple weeks ago but still everything worked fine even after.
     Can somebody help me to fix this?
     I even deleted the gmails and reset them again through the BB Setup.
     It still says, "No messages".
    Thank you

    Hi zuzikfuzik,
    Welcome to the Support Community!
    Sounds like you may have an issue with your Messages database. Please try clearing the Messages database then test with new messages only, without restoring the previous messages from backup. For further instructions, please see the following KB article: "How to clear the user content databases from the BlackBerry smartphone" http://bbry.lv/JtQKcw
    Hope this helps.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Problems with "GET" in a Script Logic

    Hi,
    I created a Script Logic in BPC NW with the following code:
    *WHEN *
    *IS *
       *REC(GET(CONCEPTO=M30121),CONCEPTO=M213)
    *ENDWHEN
    And I click "Validate and Save" and I get this error:
    Validation Error
    Unknown Dimension Name in Keyword: "*:
    What's happening?
    Regards,
    Miguel.

    Thanks, but my problem is with "GET" function in Script Logic. You don't look at what I do with the code because it's an example. The problem is that the GET function doesn't work.
    I created a Script Logic in BPC NW with the following code:
    *WHEN CONCEPTO
    *IS M30121
       *REC(FACTOR=GET(CONCEPTO=M213),CONCEPTO=M30121)
    *ENDWHEN
    And I click "Validate and Save" and I get this error:
    Validation Error
    Unknown Dimension Name in Keyword: "M213):
    And if the code is like this:
    *WHEN CONCEPTO
    *IS "M30121"
       *REC(FACTOR=GET(CONCEPTO="M213"),CONCEPTO=M30121)
    *ENDWHEN
    The error is this:
    Validation Error
    Unknown Dimension Name in Keyword: ""M213"):
    Regards,
    Miguel.

  • Problem with running Bash shell scripts

    I am unable to run Bash shell scripts on the UNIX Terminal application.
    This is the transcript from the Terminal application.
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$ ./test1.sh
    dyld: Symbol not found: _BC
    Referenced from: /usr/local/bin/bash
    Expected in: /usr/lib/libSystem.B.dylib
    Trace/BPT trap
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$
    Is this a problem with the the default installation of the Bash shell? Can I install the Bash shell on my own? If so, how can I do that?
    Also, how can I get the dynamic linker, dyld, to refer to the symbol "_BC"? What does this symbol "_BC" refer to?

    This was in your posted output:
    /usr/local/bin/bash
    You are NOT running the default bash, you are trying to run a private copy.
    The default Mac OS X bash is located at
    /bin/bash
    Try the following:
    /bin/bash ./test1.sh
    Does that work?
    What is the first line of your script? Is it:
    #!/bin/bash
    Or maybe
    #!/usr/bin/env bash
    /usr/bin/env would find the first bash in PATH . I find this most useful for finding perl on different systems, but sh, ksh, bash, zsh, csh, tcsh are all generally found in /bin so I do not bother using /usr/bin/env
    And if you have
    #!/usr/local/bin/bash
    Then the person that wrote test1.sh choose to use something besides the default bash
    Or maybe this script was transferred from some system where you needed to put your own copy of bash in /usr/local/bin because the vendor does not distribute bash
    Then again, you have not showed us what is inside your script, so it is possible something in the script called something else which invoked the /usr/local/bin/bash
    If that is the case, then you might try:
    /bin/bash -x ./test1.sh
    which should show you the commands executed before it died.

  • Problems With Transporting Interaction Center Scripts

    I have problem when I select a Script and click on Transport button in the Web UI for the interaction center, IC_Manager Role. After clicking on the transport button I need to check in the back end (transaction code SE01), if a customizing request has been created for that script I selected.
    So the problem is how do we find out if there is customizin request for that script or not? Is there a Pop Up window which comes after clicking on Transport button which would give me a customizin request number, which could be later used to find the request in backend?

    Hi,
    Try checking this in the BSP Application CRM_IC_ISE.
    If you open the script on the third tab (Script Transport) you can see the transport details.
    Hope this helps.
    Rgds,
    Rajiv

  • [Solved] Problems with permissions for a script

    Hi I realize the topic "permissions in Linux" is something that you can find very easily in the internet but I cant seem to figure out a solution for my problem.
    I currently have a working script (taken from the ArchWiki) which enables me to change my display brightness. However I must be either superuser or root to be able to use it since it sends commands to the necessary devices.
    I am currently using fluxbox as "desktop environment" and I want to be able as normal user to change the brightness without calling "sudo" everytime. I have also bound the necessary keys in the fluxbox/keys file to send the necessary commands to the script so my only problem is now with the permission.
    Every help is much appreciated
    Last edited by Triver (2011-12-13 17:34:41)

    ok it works that way (at least when I execute the additional script which contains the sudo command).
    for some reason fluxbox doesnt react when I press the keycode that I looked up with xev (although it works with a combination like "Mod4 b: exec ~/script")
    anyway I think I'll stick with that solution and add some additional commands in the script (like toggle wlan on/off), thx for the quick help
    edit: ok now I'm having difficulties with extending the script
    I want to add additional paramters so the script can be used multifunctional depending on the parameter you launch it with.
    however he seems to think that the String which I want to compare with the parameter is a command.
    here's the code
    #! /bin/sh
    if [$1 = "brightness"]; then
    if [$2 = "up"]; then
    //call the actual brightness script with sudo
    elif [$2 = "down"]; then
    // call the actual brightness scrip with sudo
    else
    echo "invalid parameters!"
    exit 1
    fi
    fi
    exit 0
    I execute the script like this
    ~/script brightness up
    but he only returns me
    ~/script: line 2: [brightness: command not found
    so whats wrong with the code?
    Last edited by Triver (2011-12-13 16:03:07)

  • Problem with add Spotlight Comments script.

    Hello,
    I am trying to add Spotlight Comments to some files using Automator. I have made an very simple script in Automator that add Spotlight Comments to the files that I have selected in Finder. I save this script as an app and it work great. I also save the same script but not as an app but as a service. The problem here is that when I run the service it add the same Spotlight Comment two times. For example, if I add "@Webshots" with the app the Spotlight Comments of the files is "@Webshots" but when I do it with the service the Spotlight Comments of the files is "@Webshots" "@Webshots". Can anybody help me with this? I will appreciate it a lot any help that you could give me. Thanks

    I suspect your workflow includes 'get select finder items' as the first action. get rid of it. it's redundant in a service that accepts files and folder in finder. that's why everything happens twice.

  • Problem with Exported ant build script(WLS 8.1SP4) working with IBMJDK1.4.2

    Hi,
    I am trying to use the exported ant script from wls workshop for building the process application.But i am using IBM JDK 1.4.2 in AIX 5.2 box.
    IBM has disintegrated the rt.jar by SUN into a number of other jar files.When i run the ant script, i have a problem like,
    <b>classpath error:unable to find required rt.jar</b>
    error and the build fails with
    <b>noClassDefFoundError:org.apache/crimson/tree/XmlDocument</b>
    I tried adding <b>rt.jar</b> into the classpath forcibly but it did not work out.
    The ear file is built and packaged but the build fails.+
    Do we have a fix for this either by bea or IBM?
    Thanks,
    Vijay

    Hi
    This is a known issue addressed by CR205204
    As you said, IBM actually does not have rt.jar in its JDK - they have moved contents of rt.jar into various jars.
    IBM is not using org/apache/crimson/tree/ in their JDK at all.So the error shows up in the end of build even if it succeeds
    You may need to add crimson.jar to wlwBuild classpath, since it is not part of IBMs JDK.
    Note: the build will work even w/o crimson.jar giving a non build related IDE exception in the very end.
    Thanks
    Vimala

  • Problem with Next-page in script.

    hi ,
    i m wrkng on order acknowledgement output in SAP SCRIPT.
    The problem i have is that for particular Sales organisations only i want terms & conditions page to be printed at the back of all pages. else oredr acknowldgement to be printed without T& C irrespective of number of pages.
    I have created a T & C page and first page. in attributes if i set next page 2 T& C then it will print for all sales org. But i want to restrict it 2 particular sales org.
    Thanks in advance.

    Hi Raju,
        i guess the data of your main window is not continuing till 2nd page thats why its not triggering your second page and as a result the signature window is not getting printed.
        So create a COMMAND NODE on your first page ( after the main window of fast page or the place where you want the second page to trigger ) and in its condition tab click the 'Go to New Page' option and give the second page name there, now it will force the second page to trigger.
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 19, 2009 4:20 PM

  • Problem with multiple gmail accounts. If I open two accounts in different tabs, Firefox makes them both the same, effectively closing one of them. I would rather have both gmail accounts open at the same time.

    I belong to a chorus of 100+ singers. A lot of us use gmail for our personal email. We have a google site where we share information. We log into that site as [email protected] I would like to open the chorus site in a new tab, leaving the original tab still logged in to my personal gmail account. Currently, my original tab will also get logged into the chorus account, and I will be logged out of my personal account. Why does information in one tab disturb the information in another tab? I can keep both accounts logged in if I log into one with firefox and the other in internet explorer. But I'd rather just do it with a tab, not a whole second browser.

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

Maybe you are looking for

  • Not able to execute for loop in korn shell

    #!/usr/bin/ksh #: notify_po.ksh # Description: Script sends out the email notification to PO mail box # History: . /homes/applidcc/.appsprofile . /homes/applidcc/set_forms.env . /homes/applidcc/external.env po_recv EMAIL=EMAIL_ADDRESS1=[email protect

  • Need Help in Building a Query

    Hi, I have a requirment where the table data looks like as below: COL_NAME      COL_NAME1 RAW_SDP     FCT_SDP FILENAME     FILENAME SDPID     SDPID CDRID     CDRID ORIGINALCDRNODEID     ORIGINALCDRNODEID ORIGINALCDRID     ORIGINALCDRID SUBSCRIBERNUMB

  • Opening Camera Raw within Bridge

    I just recently installed Photoshop CS3, and within bridge when I try to open up any raw image, it opens it up in camera raw, but within photoshop. I can't find the option that allows me to open camera raw within bridge without having to launch photo

  • The Pros of Adobe CS6 Design Standard vs CS6 Design Standard Cloud

    I'm about to purchase CS6 Design Standard, as my CS DS version is too old to upgrade (note: the Standard version suits my needs). Adobe is really pushing the Cloud version. If money is no object - what are the PROS with the Cloud version?  Are there

  • My gradient points are close together... how do you tab to the next one?

    Anybody know how to do this? It's a royal pain to spend time trying to click the pixel-wide edge of a gradient marker when they are close together. Sometimes selecting them in the Canvas helps with the gradient tool, but even then they're sometimes t