generated from CoolLibs/library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Can now pass command-line args to the exe we spawn
- Loading branch information
1 parent
cd1c083
commit a94f8a1
Showing
4 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
#include <iostream> | ||
#include <thread> | ||
#include "Cool/spawn_process.hpp" | ||
|
||
int main() | ||
{ | ||
using namespace std::literals; | ||
|
||
std::cout << "Start spawning process\n"; | ||
Cool::spawn_process(EXECUTABLE_PATH); | ||
std::cout << "Done spawning process\n"; | ||
|
||
std::this_thread::sleep_for(6s); | ||
|
||
std::cout << "Start spawning process\n"; | ||
Cool::spawn_process(EXECUTABLE_PATH, {"Hello"}); | ||
std::cout << "Done spawning process\n"; | ||
|
||
std::this_thread::sleep_for(6s); | ||
|
||
std::cout << "Start spawning process\n"; | ||
Cool::spawn_process(EXECUTABLE_PATH, {"Hello", "World"}); | ||
std::cout << "Done spawning process\n"; | ||
|
||
std::this_thread::sleep_for(6s); | ||
|
||
std::cout << "Start spawning process\n"; | ||
Cool::spawn_process(EXECUTABLE_PATH, {"Hello", "World", "two words"}); | ||
std::cout << "Done spawning process\n"; | ||
|
||
std::this_thread::sleep_for(6s); | ||
|
||
std::cout << "Start spawning process\n"; | ||
Cool::spawn_process(EXECUTABLE_PATH, {"Hello", "World", "\\\"two words\\\""}); | ||
std::cout << "Done spawning process\n"; | ||
|
||
std::this_thread::sleep_for(6s); | ||
} |