Re: [CentOS] [OT] bash here documents

2013-06-25 Thread Tony Mountifield
In article 20130624172106.61M6U.130379.root@cdptpa-web19-z02, Steve zep...@cfl.rr.com wrote: Tony Mountifield t...@softins.co.uk wrote: In article 20130624135817.10QZO.129278.root@cdptpa-web19-z02, Steve zep...@cfl.rr.com wrote: Suppose I have this C++ program: #include iostream

[CentOS] [OT] bash here documents

2013-06-24 Thread Steve
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

Re: [CentOS] [OT] bash here documents

2013-06-24 Thread Tony Mountifield
In article 20130624135817.10QZO.129278.root@cdptpa-web19-z02, Steve zep...@cfl.rr.com wrote: 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

Re: [CentOS] [OT] bash here documents

2013-06-24 Thread m . roth
Steve wrote: 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

Re: [CentOS] [OT] bash here documents

2013-06-24 Thread Steve
Tony Mountifield t...@softins.co.uk wrote: In article 20130624135817.10QZO.129278.root@cdptpa-web19-z02, Steve zep...@cfl.rr.com wrote: Suppose I have this C++ program: #include iostream int main (int argc, char** argv) { while (1) { char cmd[80];

Re: [CentOS] [OT] bash here documents

2013-06-24 Thread Steve
m.r...@5-cent.us wrote: Steve wrote: 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; } }

Re: [CentOS] [OT] bash here documents

2013-06-24 Thread Les Mikesell
On Mon, Jun 24, 2013 at 12:36 PM, Steve zep...@cfl.rr.com wrote: My junk program is a quick-and-dirty simulation if the actual program I am trying to use. I do not have the code for the program and all I know is that it responds to command input and the only way to terminate it is with