|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching • Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
execute a shell commandSee also https://nim-lang.org/docs/os.html#execShellCmd%2Cstring proc execShellCmd(command: string): int "Command has the form 'program args' where args are the command line arguments given to program. The proc returns the error code of the shell when it has finished (zero if there is no error). The proc does not return until the process has finished."
It's always a good idea to print the command first and check if it's OK. If good, then you can call it in an external process. |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |
||||