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

The Archive Base Latest Questions

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

I am running a bash script from Python. My IDE is Eclipse with PyDev.

  • 0

I am running a bash script from Python. My IDE is Eclipse with PyDev. I have installed a software that has a bash command bull2flux that I want to run inside my bash script. bull2flux is usually run like this:

bull2flux someFile > outFile

The problem is that this works fine when it is invoked directly in the terminal, but not when running it from my python script. I get the error bull2flux: command not found. I have tried running the compiled version of my software from the terminal, but the same error occurs. Is this a problem with Eclipse? Do I have to source the command somehow? bull2flux is sourced in my .bashrc file like this:

source path/to/software/bin/init.sh /dev/null

Additional info: This is how I run it in my bash script:

for file in ${folder_bml_files}/*
do
    #Other stuff here
    bulledFile="bulltmp"
    bull2flux ${file} > ${bulledFile}
    #Other stuff here
done
  • 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-18T10:20:29+00:00Added an answer on June 18, 2026 at 10:20 am

    I assume that the bull2flux executable is not in the PATH while your script is being executed. Try either using its full path or updating the PATH variable before calling the script.

    EDIT: If bull2flux is just a shell function (not an executable), you might have to source the defining shell script from your script. Try adding the line

    source path/to/software/bin/init.sh /dev/null

    from your .bashrc to your own shell script.

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

Sidebar

Related Questions

We have a system that has some Bash scripts running besides Java code. Since
I have a long running PHP script that has a memory leak which causes
I have a bash shell script which calls some python scripts. I am running
I have a linux shell script that when run from command line works perfectly
When running commands from a bash script, does bash always wait for the previous
Suppose we have a BASH script running some commands in the background. At some
I have a bash script activated by crontab and running in background. I would
When running a bash script on ubuntu 9.10, I get different behavior from bash
I am going to be running a C program from inside a bash script.
I have a bash script I want to run every 5 minutes from cron...

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.