processing in c - Serbipunk/notes GitHub Wiki

windows

CreateProcess()

BOOL bSuccess=CreateProcess(
    TEXT("C:\\Windows\\notepad.exe"),NULL,NULL,
    NULL,FALSE,NULL,NULL,NULL,&startupInfo,
    &processInformation);

linux

https://stackoverflow.com/questions/5883462/linux-createprocess

fork (<sys/types.h> <unistd.h>)

https://man7.org/linux/man-pages/man2/fork.2.html

execvp()

c++ language

https://en.cppreference.com/w/cpp/utility/program/system

#include <cstdlib>
#include <fstream>
#include <iostream>
 
int main()
{
    std::system("ls -l >test.txt"); // execute the UNIX command "ls -l >test.txt"
    std::cout << std::ifstream("test.txt").rdbuf();
}
⚠️ **GitHub.com Fallback** ⚠️