|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm having trouble finding out how to access commands in the console from a c++ program. Specifically, i want to use dd to overwrite a file by using /dev/urandom.
|
|
|||
|
Use the library call "system", as in:
status = system("cp foo bar"); Be careful with special characters to the shell, e.g. quotes, >, <, &, etc, as the command is interpreted by a shell. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|