Displaying 1 result from an estimated 1 matches for "web19".
Did you mean:
web1
2013 Jun 24
2
[OT] bash here documents
Suppose I have this C++ program:
#include <iostream>
int main (int argc, char** argv)
{
while (1)
{
char cmd[80];
std::cin.getline(cmd, 80);
std::cout << "response to " << cmd << std::endl;
}
}
compiled by: c++ -o junk junk.cpp
and I have this bash script:
#!/bin/bash
./junk <<EOF
blah
bleh
\cC
EOF
echo "Something