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
  • 337
  • 1
  • 5
  • 17

1 Answers1

1

Use the system function

system("myscript.sh");
sedavidw
  • 11,116
  • 13
  • 61
  • 95