shell scripts ...--can it be called with in a c program
mates ia hav a problem
--- -- can i call a shell script from a c program ? |
sure you can, there is a function called system(). Searh for it.
you could probably do this system("sh shellscript.sh"); what system does is execute the command as your terminal. |
Certainly you can as described above with "system" call !
Be aware that a separate task is opened from the OS with all overhead required, so this might work out for calls that are not performance critical ! |
All times are GMT -5. The time now is 08:55 PM. |