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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:39:08+00:00 2026-06-05T19:39:08+00:00

I have a Python3 script that can take optional command line parameters which the

  • 0

I have a Python3 script that can take optional command line parameters which the script reads via sys.argv. My script works fine if I run it from a terminal window, however any time I add it to the PA schedule tab with parameters, I get a bash 126 exit code in the log. According to the bash appendix this exit code means Permission problem or command is not an executable. So, it would appear that the scripts running from a terminal window don’t run in the same context as scripts run from schedule, because my script runs fine from a bash terminal.

What I need is to figure out a way to get scripts to run with optional command line parameters via the schedule tab.

I figure I could write another script that calls the first script with the optional parameters, however it seems to me there should be another way to get around this where you can just put the parameters you wish to run the script with directly on the line you give to the schedule tab to run. Otherwise I’ll have to write a script for each separate set of parameters I want to call with versus just an entry to schedule the script to run.

  • 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-05T19:39:10+00:00Added an answer on June 5, 2026 at 7:39 pm

    Thanks to @Lattyware for this solution. If you have this problem you can solve it by going to a terminal and adding the execute bit on your script. You can accomplish adding the execute permission using chmod such as:

    chmod 700 foo.py
    

    You may also want to verify your file permissions prior to any changes to ensure you don’t add or remove something you didn’t intend to.

    You can read up on chmod here if you need to.

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

Sidebar

Related Questions

i have tests that i ran which can take up to 15m at a
I have a python script that, once executed from command line, performs the needed
I have a Python script that reads through a text csv file and creates
I have a python script that will take each file in a directory, iterate
I have a python script that has to launch a shell command for every
I have several test modules that are all invoked together via a driver script
I'm writing a script that needs to take advantage of a Java daemon via
I have a Python script that uses built-in modules but also imports a number
I have a python script that uses threads and makes lots of HTTP requests.
I have a Python 3 script that is going to be doing some regex

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.