![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing /cn@0:console file permissions | ErnieG | Security | 4 | 12-04-2007 08:39 AM |
| permanent redirection of standard input | gfhgfnhhn | Shell Programming and Scripting | 6 | 11-01-2006 04:52 AM |
| input redirection question | luistid | Shell Programming and Scripting | 0 | 08-22-2006 07:28 AM |
| redirection stdin | whited05 | Shell Programming and Scripting | 2 | 10-12-2005 02:03 PM |
| Input Redirection | majeed73 | UNIX for Dummies Questions & Answers | 6 | 07-08-2002 03:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi
I am doing file redirection at console for use by my binary. %console%> bin < inputfile After reading in the entire file, I want my program to continue taking input from the console. So essentially I want to redirect stdin back to console. But I cant figure out how to do it. I am using GNU compiler on Linux and Solaris. Can anyone help me in this regard. Thanx Nauman Last edited by nauman; 09-28-2001 at 07:01 PM.. |
|
||||
|
I am not opening any file in my program. The file is being redirected to stdin by the OS.
bin < inputfile I am using gets() to read, which not to mention read from the stdin. After I am finished reading the file, I want gets() to continue reading from console input. Are u implying that file redirection causes a fd attached to stdin. If so when I reopen the fd, what argument should I give it, to attach it to console input. I am going to try it next anyway and see what happens. Thanx Nauman |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|