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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:46:35+00:00 2026-06-11T16:46:35+00:00

I have these code in a file code.py param_list = [‘/usr/bin/someapp.bin’,’-q’,’/usr/bin/someparam.conf’,’/tmp/output.pdf’] p = subprocess.Popen(

  • 0

I have these code in a file “code.py”

param_list = ['/usr/bin/someapp.bin','-q','/usr/bin/someparam.conf','/tmp/output.pdf']
p = subprocess.Popen( param_list , shell=False, stdout=subprocess.PIPE )
p.communicate()

the someapp.bin will produce a file and output as /tmp/output.pdf
when i run under the code.py under terminal shell , it works ,
and the user is : ubuntu

but when i try run it as a service using user : service_user
and make sure the /tmp folder is writable and accessible for anyone.

my question is why it just cannot generate as it suppose to be under
service , my suspect is permission issue but i just cannot get it to
work and need some advice and help , 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-06-11T16:46:36+00:00Added an answer on June 11, 2026 at 4:46 pm

    The code should work. To track down the issue:

    1. Add print(os.getuid()) to the code to make sure it’s started with the UID that you expect
    2. Enable logging/debugging for someapp.bin to see whether there is an error
    3. Examine the exit code
    4. Print the output of the command to the console so you can see any errors:

      output = p.communicate()[0]
      print(output)
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a json file with many elements like these: { code : hfuiew89,
I have this code which will include template.php file from inside each of these
Is there any way to have a code that opens a PDF file in
I have some code to read from a pdf file. Is there a way
I have this code to download a file, but on sourceforge.net sever there is
I have java source code in a text file. There has to be entered
I have these code in my views.py: array = [] p = Person.objects.filter(client=1,status='Complete').values('name', 'age',
hi im new to jquery and im facing these problem i have these code
I have use these code to upload two images in folder of the root
I have these lines of code in a command line project in VS2010 c++.

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.