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

The Archive Base Latest Questions

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

I tried the following two ways to source the property file #!/bin/sh . import.properties

  • 0

I tried the following two ways to source the property file

#!/bin/sh
. import.properties
echo $USER_ID
echo $INPUT_FILE

It says :

./test.sh[3]: import.properties:  not found

when tried using source import.properties it gave the message as:

./test.sh[3]: source:  not found.

I am very new to the scripting and env. Please let me know what I am missing here?

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

    To be found by the dot . command, the file must be readable (not necessarily executable) and on your PATH (and to be safely usable, it must contain shell script).

    If the file is in your current directory and . (the directory, not the command) is not on your PATH, you can use:

    . ./import.properties
    

    Otherwise, you need to specify the absolute name of the file, or relative name of the file, or move the file to a convenient directory on your PATH.

    The alternative notation, source import.properties fails because you are not in the C Shell, and because you are not using Bash. The source command in the C Shell is the analogue of the dot command in the Bourne shell. Bash allows it as a synonym for the dot command (or the dot command as a synonym for source). Since source was not found, we can safely assume your shell does not support it as a built-in.

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

Sidebar

Related Questions

I tried to sort a data table with following two ways table.DefaultView.Sort = Town
I tried following the README file in Ruby 1.9.1 but I can't compile it
I'm beginning Haskell... I tried to write the following trivial function in two different
I've tried following two written guides and one youtube video ( http://www.youtube.com/watch?v=8ZmawOCDeyo ) and
I have been tried the following two kinds of codes. Run time: if ([[[UIDevice
Please look at the following test page : sample page showing two images .
I have tried the following code in many ways but it just doesn't work.
I've tried several ways to achieve this but here goes... I have the following
Tried following the instructions here: How to use Google app engine with my own
I tried following the instruction s but can't get the plugin to work, the

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.