ngorelic@csm9a.UUCP (Noel Gorelick) (02/28/88)
Anybody have any idea how I can invoke shell commands from
a fortran and_or C program? Particularly, vi, mv, and chmod.
"Time of your life, Huh kid?" | ngorelic@csm9a
-Guido, the killer pimp | ...cu-den!udenva!isis!csm9a!ngorelic
| feel.free.to.jump.in.here.anywhere
steve@mahendo.Jpl.Nasa.Gov (3171) (02/28/88)
From article <631@csm9a.UUCP>, by ngorelic@csm9a.UUCP (Noel Gorelick): > Anybody have any idea how I can invoke shell commands from > a fortran and_or C program? Particularly, vi, mv, and chmod. Use the system(3) call. You pass a string with the shell command in it, system(3) forks off a shell which executes the command and returns when the shell is done.