Re: Get command line via system calls?
Michael D. Crawford wrote:
Can one get a program's command line parameters via system or library
calls?
I'm looking for a *portable* way to get the command line in a FORTRAN 77
program. That version of FORTRAN didn't provide command line parameters
in a portable way. One can get them, but the code required is not
portable between compilers. Each environment provides a different way.
Maybe reading
/proc/_some_pid_/cmdline
would help.
Andro
--
Andrey Andreev
University of Helsinki
Dept. of Computer Science
Reply to: