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

  • Home
  • SEARCH
  • 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 8436917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:18:28+00:00 2026-06-10T07:18:28+00:00

I have various scripts that I would like to make available to several other

  • 0

I have various scripts that I would like to make available to several other people to use with their own accounts. I keep these scripts in a github repo.

Let’s say I have a bash script to ssh into computer via:

username=crzyuser123
ssh -XY $username@specialcomputer.com

Now I’m not crazy, I don’t store my password (using rsa pub/private keys) in the script, but let’s say that it’s a very handy script that I use and update all the time, and other people also use all the time (but they clearly have a different username).

What I’d like to be able to do is say, “git pull, then edit this one line in the file so that your username is there, then forget it!” And each time they git pull to update their repo, it leaves that line unchanged.

They could, of course, update this one line every time they update the repo, but that seems to be a huge pain. I also need to convey any solution in not-too-difficult way.

What’s the best practice to making this situation easiest for all involved?

  • 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-06-10T07:18:29+00:00Added an answer on June 10, 2026 at 7:18 am

    I’ve figured out a way to not store the username in the bash script. Here’s the bash solution I’ve implemented:

    # If an argument is passed, set as supercomputer username
    if [ $# -eq 1 ]
    then
      username=$1
    # Else, use the current username as the supercomputer username
    else
      username=$LOGNAME
    fi
    

    This allows for the script to be run automatically (assuming that the current user is the same as the supercomputer username). And if someone needs to enter a different username, the script will take that one.

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

Sidebar

Related Questions

I would like to have a complex form that uses various VBA script files.
I have various models of which I would like to keep track and collect
We have various programs and scripts that we create that we need to deploy
I have a python web application and I would like to run multiple scripts
We have a set of ~10-15 windows desktops that we use for various grid
So I would like to use NuGet to manage the various projects I use
I have a directory that contains various files, .txt, .xls, .pdf, etc I would
I have just a question... I'm seeing this coding style in various php scripts
I have various time-series I'd like to correlate and present as either a csv-file
I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL.

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.