473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

System calls not using correct permissions?

My Python script is basically glue for a lot of batch files and
whatnot, so it uses os.system liberally. However, there is a strange
problem where the scripts called by os.system do not function correctly
in the Python code, but work fine when I simply copy and paste the
command into the shell myself. I am thinking it's some sort of
permissions issue. The batch files contain multiple calls to other
scripts as well... don't know if that has anything to do with it. I
also set my umask to 0 at the beginning of the [Python] script and
still no luck.

Anyone know what the deal might be?

Thanks,
Scott

Jul 21 '05 #1
3 1221
On 14 Jul 2005 15:51:52 -0700,
"sk*****@gmail.com" <sk*****@gmail.com> wrote:

[ os.system doesn't work right, even when I set umask to 0 ]
Anyone know what the deal might be?


It might be anything, but without more details (like what operating
system you're running, what version of Python you're running, an actual
error message, a traceback, what your program is supposed to do that you
think it isn't doing, etc.), it's absolutely impossible for anyone to
make even an educated guess.

See also www.catb.org/~esr/faqs/smart-questions.html.

Regards,
Dan

--
Dan Sommers
<http://www.tombstonezero.net/dan/>
Jul 21 '05 #2
Oops, yeah I should have mentioned some of that. It's a Linux
environment, and it's running Python 2.2. To my knowledge, the batch
files my program calls run a few processes on some data and generate a
few temporary files. I believe those files are not correctly being
generated. There is an error message in one of the scripts that says
could not find xxx.xxx, which is a temp file it creates. The batch
files are all executed with tcsh.

Jul 21 '05 #3
On 15 Jul 2005 07:10:10 -0700,
"sk*****@gmail.com" <sk*****@gmail.com> wrote:
Oops, yeah I should have mentioned some of that. It's a Linux
environment, and it's running Python 2.2. To my knowledge, the batch
files my program calls run a few processes on some data and generate a
few temporary files. I believe those files are not correctly being
generated. There is an error message in one of the scripts that says
could not find xxx.xxx, which is a temp file it creates. The batch
files are all executed with tcsh.


Again, just a guess, but one of (the many) reasons not to use tcsh is
that it has some very strange (to me, anyway) rules about which startup
files (e.g., .login) to run when. Perhaps one of your such files is
being executed in one case and not the other, and is doing something
relevant to an environment variable or umask.

Regards,
Dan

--
Dan Sommers
<http://www.tombstonezero.net/dan/>
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: MLH | last post by:
I was reading up on A97 security and found a blurb saying Microsoft Access provides two traditional methods of securing a database: setting a password for opening a database, or user-level...
0
by: Brian A | last post by:
I have code that calls some Win32 code. My library is accessed via remoting from a client. In version 1.0 of the framework I had no problems. With 1.1 I consitently get the securityException: ...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
0
by: paul | last post by:
I just installed Windows XP SP2 on my web server. Now when I run one of the web applications I get the following error: ArgumentException: Illegal characters in path.] ...
5
by: mbosco51 | last post by:
Hi. I have a virtual path setup in order to give my web server access to a file on my app server. I am using the file system object to check for the existance of the file and if it exists, it has...
11
by: Yelena Varshal via AccessMonster.com | last post by:
Hello, I have a problem with one of msaccess.exe API calls that work on my desctop but does not work on the laptop from within MS ACCESS. There is a lot of differences between 2 computers...
6
by: alex | last post by:
Hi, this always works: private ConsoleToTextbox myConsole; Console.SetOut(myConsole); But now (a few weeks later i started this project again) i get a non handeld security exception from...
35
by: jleslie48 | last post by:
I've written a cgi program in C using the borland 5.5 free compiler, and it runs just fine on an Apache server. My only issue is if I issue some system calls the cgi suspends until the call...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.