Sponsored Content
Top Forums Programming std::cout and gfortran print*, don't output to the screen Post 302508947 by Corona688 on Tuesday 29th of March 2011 12:49:07 PM
Old 03-29-2011
Quote:
Originally Posted by LMHmedchem
The problem is particularly odd because the program compiles, links, runs, and gives the correct output, it just doesn't print to the screen.
If it doesn't print to the screen, what does it print to?

There's no mysterious difference between cygwin terminal inheritance and linux terminal inheritance that causes terminals to break. If anything I'd expect it to break in cygwin first since it's generally a poor approximation of UNIX. It comes down to what your program is doing, or maybe what the script running it is doing.

Beyond that I can't help if you can't post code. I've thrown as many darts at as many possible answers as I can think of. I'm done with this thread too.

Last edited by Corona688; 03-29-2011 at 01:54 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to redirect std out and std err to same file

Hi I want both standard output and standard error of my command cmd to go to the same file log.txt. please let me know the best commandline to do this. Thanks (2 Replies)
Discussion started by: 0ktalmagik
2 Replies

2. Programming

Why I don't get any output?

Hello, I am very new in writing low level programming in C. I am trying to get an output in Linux 2.6.17.6 gentoo platform, but I don't get any output. I am trying to do the following: I am trying to scan a word and print its content at the standard output by using sscanf and printf. I... (6 Replies)
Discussion started by: Sharmin
6 Replies

3. Programming

Sun Studio C++ - Getting error in linking std::ostream &std::ostream::operator<<(std:

Hello all Im using CC: Sun C++ 5.6 2004/07/15 and using the -library=stlport4 when linkning im getting The fallowing error : Undefined first referenced symbol in file std::ostream &std::ostream::operator<<(std::ios_base&(*)(std::ios_base&))... (0 Replies)
Discussion started by: umen
0 Replies

4. Shell Programming and Scripting

awk to compare lines of two files and print output on screen

hey guys, I have two files both with two columns, I have already created an awk code to ignore certain lines (e.g lines that start with 963) as they wou ld begin with a certain string, however, the rest I have added together and calculated the average. At the moment the code also displays... (3 Replies)
Discussion started by: chlfc
3 Replies

5. UNIX for Dummies Questions & Answers

cout doesn't print everything

Hi all, I implemented a C++ program and successfully compiled and ran on my laptop. However when I copy my code to another machine (school's sun machine), it didn't run properly. I can compile and run, but cout does not print everything. I used cout in a loop where it iterates no more than 20... (5 Replies)
Discussion started by: SaTYR
5 Replies

6. AIX

Redirecting Both to a file and std output

Hello Friends, Can some one help me how to redirect output of a file to both a file and std output? All the help would be greatly appreciated. Regards Sridhar (1 Reply)
Discussion started by: send2sridhar
1 Replies

7. UNIX for Advanced & Expert Users

redirect to both file and std output at the same time

hello can some one please help me to redirect the output of a command to both std output and a file. this is little urgent. sridhar (2 Replies)
Discussion started by: send2sridhar
2 Replies

8. UNIX for Dummies Questions & Answers

how to print script output to screen and file

Hi all, I have a script that bulk loads thousands of lines of data. I need to log the output during the execution of the script. I know I can redirect (">") the output to a file; however, I want the output going to both the screen and the log file. I thought I could use pipe to pipe the... (10 Replies)
Discussion started by: orahi001
10 Replies

9. Solaris

Camouflage STD IN on output (TRU64)

Hi guys, i have a new problem, even in scripting on KSH. Given a string by standard INPUT (keyboard), i need to replace each character i print with this one '#' . It's to camouflage password while digiting on command line. For example: ---------------------------------- prompt$ ... (3 Replies)
Discussion started by: D4vid
3 Replies

10. UNIX for Dummies Questions & Answers

awk: don't print sub-arrays

Hi ! I have this input: 12{11}{11110}{80}3456 {123}15{60}9876{8083}34 I try to work on individual numbers between braces. 3 possible cases (here I used colours to be clearer only): - there is no "0" among the characters between braces: so we don't touch anything. - there is a "0" among... (4 Replies)
Discussion started by: beca123456
4 Replies
WSCONSCFG(8)						    BSD System Manager's Manual 					      WSCONSCFG(8)

NAME
wsconscfg -- configure and switch between virtual terminals on a wscons display SYNOPSIS
wsconscfg [-e emul] [-f ctldev] [-t type] index wsconscfg -d [-F] [-f ctldev] index wsconscfg -g [-f ctldev] wsconscfg -k | -m [-d] [-f ctldev] [index] wsconscfg -s [-f ctldev] index DESCRIPTION
The wsconscfg tool allows to create, delete and switch between virtual terminals on display devices controlled by the wscons terminal frame- work if the underlying display hardware driver supports multiple screens. Further it controls the assignment of keyboards to displays. The index argument specifies which virtual terminal is to be configured; the allowed numbers are from 0 to an implementation-specified value (currently 7, allowing for 8 virtual terminals on a display). In keyboard configuration mode, it specifies the wskbd(4) device to attach or detach. Without further option arguments, a virtual terminal is created with implementation specific properties and a default terminal emu- lation variant selected at kernel compile time. The options are: -d Delete the specified terminal. A terminal opened by a program will not be deleted unless the -F option is applied. Terminals used by the operating system console or a graphics program (X server) cannot be deleted. With the -k flag, the keyboard specified by index will be detached from the wscons display. With the -m flag, the multiplexor specified by index will be detached from the wscons display. -e emul Specify the terminal emulation to use for the virtual terminal. The set of available terminal emulations is determined at kernel compile time. See wscons(4) for details. -F Force deleting of a terminal even if it is in use by a user space program. -f ctldev Specify the control device of the wscons display to operate on. Default is /dev/ttyEcfg. -g Print the index of the current virtual terminal. -k Do keyboard related operations instead of virtual screen configuration. Without other flags, a keyboard will be attached to the display device. The index argument can be omitted, in this case the first free keyboard will be used. -m Do multiplexor related operations instead of virtual screen configuration. Without other flags, a multiplexor will be attached to the display device. -s Switch to the specified virtual terminal. -t type Specify a screen type to use. Screen types refer to display format, colour depth and other low-level display properties. Valid type arguments are defined by the underlying display device driver. Typically, the wsconscfg utility will be invoked in system startup by the /etc/rc.d/wscons script, controlled by the /etc/wscons.conf config- uration file. FILES
/etc/wscons.conf EXAMPLES
wsconscfg -t 80x50 -e vt100 1 Configure screen 1 (i.e., the second), it will get the type '80x50' and use the VT100 terminal emulation. (Note: '80x50' is a screen type offered by the vga(4) display driver. In this particular case, an 8x8-font must be loaded before to make the screen useful. See wsfontload(8).) wsconscfg -k Connect the first unconnected keyboard to the display. wsconscfg 3 Create screen 3. wsconscfg -d 3 Delete screen 3. wsconscfg -s 2 Switch to screen 2. SEE ALSO
wscons(4), wskbd(4), wsconsctl(8), wsfontload(8) BUGS
There should be an easy way to get a list of the screen types available on a display, and of the emulations supported by the kernel. BSD
June 24, 2006 BSD
All times are GMT -4. The time now is 01:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy