c - Embedded linux call using system -


I'm having trouble using the system ("command") call in C on the embedded system in Linux. The call works fine on the command line, but when the call is made in compiled CGI script through system command, then this pain is slow. Any help appreciated?

using the system () you provide logic in my experience, when Sometimes an external order is required to run, then it is rarely useful to get involved. Shell adds overhead, and it can be what you are slowing down.

If what you are doing is not really a shell, then instead try system () try using kanaka () To make a child process, then run exec () to execute.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -