![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Redirecting part of output to stdout | Legend986 | Shell Programming and Scripting | 2 | 10-17-2008 03:20 PM |
| implicitly redirecting stdout to a file | ALTRUNVRSOFLN | Shell Programming and Scripting | 1 | 09-23-2008 03:42 PM |
| Redirecting STDERR message to STDOUT & file at same time | vikashtulsiyan | Shell Programming and Scripting | 10 | 04-09-2008 02:34 PM |
| redirecting STDOUT & STDERR | jshinaman | Shell Programming and Scripting | 9 | 06-22-2007 12:04 AM |
| Printing outputs using awk. | Krrishv | Shell Programming and Scripting | 4 | 01-09-2007 07:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Redirecting several outputs to /dev/stdout
I have an executable that, depending on its input, outputs to either one file or several. It usually prints nothing on screen. The usual way to call this program is to specify an input and output filenames, like this:
Code:
./executable.exe -i inputfile -o outputfile I want to force output everything from it on screen. If I change my code to: Code:
./executable.exe -i inputfile -o /dev/stdout Code:
terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::insert Abort Thanks |
|
||||
|
Since it is the program that controls the opening and closing of its output files, no.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| force output to screen, multiple files, multiple outputs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|