Results 1 to 3 of 3

Thread: Script Help

  1. #1
    Join Date
    Oct 2008
    Beans
    3,509

    Script Help

    I have a downloaded perl script that I use with conky to access gmail, that needs you to set your username and password within the script.
    ie
    Code:
    $user="username"; #username for gmail account 
    $pass="password";
    I want the perl script to retrieve my password from gnome keyring instead of having it in the script.
    I have a python script which can retrieve a password from gnome keyring.
    The python script is in my PATH and can be run in terminal to output my password with...
    Code:
    gkeyring --id 13 -1
    So in the perl script I tried
    $pass="`gkeyring --id 13 -1`";
    but doesn't work.

    What do I need to use so the $pass variable in the perl script uses the output of gkeyring --id 13 -1

    PS I know nothing about perl or python.
    Last edited by stinkeye; March 25th, 2013 at 02:22 PM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Script Help

    Remove excessive quoting:
    Code:
    $pass=`gkeyring --id 13 -1`;

  3. #3
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Script Help

    Aha... worked.
    Thankyou.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •