MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C/C++ system() calling shell scripts

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
HenriqueS
Beginner


Joined: 01 Feb 2007
Posts: 29
Topics: 14

PostPosted: Mon Mar 23, 2009 6:55 pm    Post subject: C/C++ system() calling shell scripts Reply with quote

Hello,

I
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Mar 23, 2009 8:21 pm    Post subject: Reply with quote

HenriqueS,
It's considered bad form to post the same question on 2 different bulletin boards within an hour of each other. angry
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
HenriqueS
Beginner


Joined: 01 Feb 2007
Posts: 29
Topics: 14

PostPosted: Fri Mar 27, 2009 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group