could someone please tell me how to stop error messages being displayed to the console port.
Currently, error messages are streaming to the console and I ant do anything.
many thanks..... (2 Replies)
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... (4 Replies)
I am writing a program that uses system() to pass commands to the command interpreter. Is there a way to read the output that the commands produce? (1 Reply)
I am running Shorewall firewall config program to utilize iptables on a Debian 3.3.5 system. This system is setup for a getway/router. I am getting a message:
Shorewall:bogons:Drop:IN=eth0 OUT= MAC+ mac address of eth0 SRC:someinternetIP DST=MYIPADD LEN=61 TOS+0x00 PREC=0x00 TTL=114 ID=6673... (3 Replies)
I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Hey everyone
I have a sparc enterprise T2000 I'm trying to install solaris 10 on. The only way I can connect to it is the SER MGT console, but I'm not getting anything to display (in Hyper terminal, or PUTTY) when I boot it. Upon googleing, all I get back is "No output may have been generated.... (4 Replies)
Hellos!
I want to have a unix script that will run grep on the console output. Here is what my script does:
1. Telnet into a remote server (I have done this part successfully)
2. On successful login, the remote server displays outputs information on the console. I need to run grep on that... (6 Replies)
I have a menu based script where user will select different action via displayed menu.
I want to log all the action or say whatever displayed on screen to a log file and want to achieve with in the same script.
i tried named pipe as below..
logfile=mylogfile
mkfifo ${logfile}.pipe... (3 Replies)
Hello,
I have a file. The content of the file is shown below.
>AB34.txt
65
66
67
68
>2D2Z.txt
61
62
>2D2Z.txt
92
93
94
>3E50.txt
106
107
>3E50.txt (1 Reply)
Discussion started by: manual
1 Replies
LEARN ABOUT OSF1
tmpfile
tmpfile(3) Library Functions Manual tmpfile(3)NAME
tmpfile - Creates a temporary file
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <stdio.h>
FILE *tmpfile ( void );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
tmpfile(): XSH4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The tmpfile() function creates a temporary file and returns its FILE pointer. The file is opened for update. The temporary file is automat-
ically deleted when the process using it terminates.
RETURN VALUES
Upon successful completion, the tmpfile() function returns a pointer to the stream of the file that is created. Otherwise, it returns a
null pointer and sets errno to indicate the error.
ERRORS
The tmpfile() function sets errno to the specified values for the following conditions:
A signal was caught during tmpfile(). OPEN_MAX file descriptors are currently open in the calling process.
[Tru64 UNIX] All available file descriptors are currently open in the calling process. The maximum allowable number of files is
currently open in the system. The directory or file system that would contain the new file cannot be expanded.
RELATED INFORMATION
Functions: fopen(3), mktemp(3), tmpnam(3), unlink(2), getdtablesize(2)
Standards: standards(5) delim off
tmpfile(3)