#include #include #include #include using namespace std; int main(){ int fd = open("snakes", O_WRONLY | O_APPEND | O_CREAT, 0644); dup2(fd, 1); cout << "python" << endl; cout << "Does this program even work?\n"; printf("Come on, surely this will print!\n"); close(fd); return 0; }