Ok, I got system calls working fine, but can anyone answer this?? I have an if/else statement that it always goes in the if currently. In the if there is a function that gets run and then I will need to make a system call after that function. Unfortunately, I cannot post my code because my job wouldn’t like that and it’s over 1000 lines anyway…but here is a small example
Pretty simple, and I don’t see the problem…foo is the script which contains:
So the problem is that it does not create this file “foobar”
However, if i do system(“touch foobar”); it works in its place…why would a system call work there for a function and not a script
PS. the system call for the script works if i call it in the beginning…go figure
And the permissions and paths seem to be right…anyone know why this could all be???