I need to call a shell script on my unix box from within C and I need to pass one variable. This is what I have:
system("/home/dtuser/Grant/SMR/Script/vMirror3.sh %s", privCode);
the privCode is what's causing a problem, when I build I get an unknown argument so that's obviously not the way to pass a variable.
Thoughts?
system("/home/dtuser/Grant/SMR/Script/vMirror3.sh %s", privCode);
the privCode is what's causing a problem, when I build I get an unknown argument so that's obviously not the way to pass a variable.
Thoughts?