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 7531785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:15:59+00:00 2026-05-30T05:15:59+00:00

I have some simple scripts that allow me to change where certain versions of

  • 0

I have some simple scripts that allow me to change where certain versions of applications are used at run-time that are coded in to my .bashrc file.

For example, let’s say I have the ‘cat’ application. There are two versions, one in /test/working and another in /test/beta.

If I run a bash command, “changer.sh”, it changes the symbolic link in /bin/cat to point to either /test/beta/cat or /test/working/cat. When working in terminals and within Konsole or Xterm, this works fine.

I also have a line in my .xinitrc so that X applications can see this environment variable as well, but there is a problem: it seems that Xorg/Xfree86 de-references the symbolic link when Xorg starts up, so, for the entire duration of my Xsession, “cat” is resolved as /test/working/cat, and never re-evaluates the symbolic link if it changes later on. It seems the only workaround at this time is to close and re-start Xorg every time I change this symbolic link. Is it possible to force Xorg to reload/re-parse my .xinitrc without having to restart it each time?

Thanks!

  • 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-30T05:16:00+00:00Added an answer on May 30, 2026 at 5:16 am

    No, not really.

    set up a bin folder with your apps:

    ln -s /working/bin/cat /local/bin/cat
    

    make .xinitrc set your desired apps to the symbolic link.

    CAT=/local/bin/cat # and execue $CAT and not just cat
    

    or

    PATH=/local/bin:$PATH 
    

    that way all apps in /local/bin will be used (found) before the ones in $PATH

    make your changer.sh manipulate the links in /local/bin

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple script that does some search and replace. This is basically
I have some simple shell scripting tasks that I want to do For example:
I have a simple HTML5 page that I'm building to figure some things out
In my .NET web applications I usually have a Scripts folder that contains all
I have created a simple JQuery script with hovering effect on some links. The
I have simple HTML code with some JavaScript. It looks like: <html> <head> <script
I have some simple markup: <table> <tr> <td>Menu Item</td> </tr> </table> <div> <table> <tr>
i have some WinForms app (Framework to develop some simple apps), written in C#.
i have some WinForms app (Framework to develop some simple apps), written in C#.
I have some very simple code to generate an assembly and invoke a method

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.