#include #include #define FIFO_FILE "MYFIFO" int main(int argc, char *argv[]) { FILE *fp; if(argc !=2) { printf("Num of arg --> wrong\n"); exit(1); } if((fp = fopen(FIFO_FILE,"w")) == NULL) { exit(1); } fputs(argv[1],fp); fclose(fp); return(0); }