View previous topic :: View next topic |
Author |
Message |
HenriqueS Beginner
Joined: 01 Feb 2007 Posts: 29 Topics: 14
|
Posted: Mon Mar 23, 2009 6:55 pm Post subject: C/C++ system() calling shell scripts |
|
|
Hello,
I |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Mon Mar 23, 2009 8:21 pm Post subject: |
|
|
HenriqueS,
It's considered bad form to post the same question on 2 different bulletin boards within an hour of each other.  _________________ ....Terry |
|
Back to top |
|
 |
HenriqueS Beginner
Joined: 01 Feb 2007 Posts: 29 Topics: 14
|
Posted: Fri Mar 27, 2009 6:04 pm Post subject: |
|
|
I did compare the file permissions for the files that where called under the .sh script. Then figured out that these permissions were not OK, I did set a '''chmod''' 755 for these new files and the job executed like a charm.
My guess is that the user context under which the batch job (the one that invokes the C program with the system() call) was not allowed to access those files. |
|
Back to top |
|
 |
|
|