Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7682723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:38:00+00:00 2026-05-31T18:38:00+00:00

My Problem My core issue is I need to start the gnome-keyring-daemon from c

  • 0

My Problem

My core issue is I need to start the gnome-keyring-daemon from c shell. In bash, it’s quite easy:

> export `gnome-keyring-daemon`

which is the equivalent of:

> export GNOME_KEYRING_SOCKET=/tmp/0123.1.sds/keyring-abcdef/socket GNOME_KEYRING_PID=012345

My goal is to get the same functionality in c shell, but my command line skills aren’t up to the task.

What I Tried

If I run

echo gnome-keyring-daemon | tr ‘=’ ‘ ‘ | sed s/GNOME_KEYRING_SOCKET/setenv\ GNOME_KEYRING_SOCKET/ | sed s/GNOME_KEYRING_PID/\;setenv\ GNOME_KEYRING_PID/

I get a good start:

setenv GNOME_KEYRING_SOCKET /tmp/0123.1.sds/keyring-abcdef/socket ;setenv GNOME_KEYRING_PID 012345

Despite the fact that i can copy and paste that output to the command line and get it to work, if I enclose that statement in ticks to get it working on one line I get the following error:

Invalid null command.

I researched it and saw it is related to a newline sneaking in that needs to be escaped or removed; however, I still get the error even after adding replace commands for \r and \n like so:

> | tr '\r' ' ' | tr '\n' ' ' |

What I’m looking for

I really just need anything I can add to my .cshrc file that will start the gnome-keyring-daemon. If I’m on the wrong track, I’d be happy to hear an alternative approach.

Thanks!

One Last Thing I Tried

To really simplify this I’ve also tried to just set one variable at a time:

setenv GNOME_KEYRING_PID `echo -n `gnome-keyring-daemon` | sed 's/.*GNOME_KEYRING_PID=\([0-9]\+\)/\1/'`

Which also gives me a “Invalid null command.” message despite the fact that this works:

setenv GNOME_KEYRING_PID `echo '1234'`
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:38:02+00:00Added an answer on May 31, 2026 at 6:38 pm

    Thanks to @shelter and @gbulmer for your help. I really hate answering my own question, but this may help someone in the future…

    In the end I updated my C Shell script to set the variables on multiple separate lines:

    set gkd = `gnome-keyring-daemon`
    
    set pid = `echo $gkd |  sed 's/.*GNOME_KEYRING_PID=\([0-9]\+\)/\1/'`
    set socket = `echo $gkd | sed 's/GNOME_KEYRING_SOCKET=\([^ ]\+\).\+/\1/'`
    setenv GNOME_KEYRING_PID $pid
    setenv GNOME_KEYRING_SOCKET $socket
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem compiling an application which uses Core-Plot in debug mode. It
I am porting some Core Data code from iPhone to Mac OS X. Problem
Problem: I have an address field from an Access database which has been converted
Problem: Given a list of strings, find the substring which, if subtracted from the
Core problem: I want to be able to take an instance of a templated
Here's the core problem: I have a .NET application that is using COM interop
I have a Django view that receives POSTs which do not need to have
I have a Core Data model in which a Task entity includes an optional
I am facing a really strange problem with Core Data. Let's describe it: Definitions
Solution: The problem below was caused by a Divx javascript that overwrote a core

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.