0

How might I go about writing a program in C that executes a .sh (shell script) file? I'm writing a program, and one of the functions requires running some shell scripts. Thanks!

Evan
  • 317
  • 1
  • 4
  • 17

1 Answers1

1

Use the system function

system("myscript.sh");
sedavidw
  • 10,038
  • 12
  • 53
  • 88