1

Troubles with pipes, fork, and dup2

view story
linux-howto

http://www.unix.com – I want to execute metasploit by two pipes to communicate with it, but I have troubles with that communication. When I run my program, I get this error: "stty: standard input: Inappropriate ioctl for device" and I don't receive the metasploit promt. just select an exploit. This is my code: Code: #include <stdio.h>  #include <stdlib.h>  #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <iostream>  int main(int argc (HowTos)