Sponsored Content
Full Discussion: Make-output
Top Forums UNIX for Dummies Questions & Answers Make-output Post 302829313 by RudiC on Thursday 4th of July 2013 01:41:49 PM
Old 07-04-2013
man bash:
Quote:
Redirecting Standard Output and Standard Error
This construct allows both the standard output (file descriptor 1) and the standard error output (file descriptor 2) to be redi‐
rected to the file whose name is the expansion of word.

There are two formats for redirecting standard output and standard error:

&>word
and
>&word
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to make a line BLINKING in output and also how to increase font size in output

how to make a line BLINKING in output and also how to increase font size in output suppose in run a.sh script inside echo "hello world " i want that this should blink in the output and also the font size of hello world should be big .. could you please help me out in this (3 Replies)
Discussion started by: mail2sant
3 Replies

2. Shell Programming and Scripting

Sed does not make changes in the file but to the standard output

I have an xml file. I am doing some change, say deleting line 770. File name is file.xml. I use: sed '770d' file.xml but this does not actually make changes in the *file* but shows the changes on standard output (screen) if i use $var=`sed '770d' file.xml` echo $var > file.xml this... (3 Replies)
Discussion started by: indianjassi
3 Replies

3. UNIX for Dummies Questions & Answers

trying to make sense of rsync output...

I'm running the following rsync command to sync a directory between the 2 servers: rsync -az --delete --stats /some_dir/ server_name:/some_dir I'm getting the following output: Number of files: 655174 Number of files transferred: 14221 Total file size: 1138531979331 bytes Total... (0 Replies)
Discussion started by: GKnight
0 Replies

4. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

5. UNIX for Dummies Questions & Answers

How to make cronjob output to different files everyday

Hello, I have a cronjob that i am currently running which is as follows: php /home/****/cronjob.php --debug 2>&1 >> /home/cronjoboutput.txt That, as you may know, logs the output to a file called cronjoboutput.txt in the home directory. I want that cronjob to output to a different file... (6 Replies)
Discussion started by: umarsa
6 Replies

6. Shell Programming and Scripting

perl - how to make output of a command a numbered list

Hi there, just wondered if somebody could help me with a problem I have I have a program that when run from the command line will output a list of objects # list_servers server1 server5 server7 server8 # I just wanted to know, in perl, how can i make each line of output from... (4 Replies)
Discussion started by: rethink
4 Replies

7. Shell Programming and Scripting

Redirecting output of Make to file

Hi, I am unable to get this script to work as desired. Basically, if an argument "log" is sent into the script, it outputs the result of the Make to a file output.log. However, if the argument is not passed, I want the output to be just put on screen (no redirection). See code snippet below. #... (3 Replies)
Discussion started by: srujan45
3 Replies

8. UNIX for Advanced & Expert Users

sar -d output... does not make sense

Can someone explain the correlation between how sar names the disk drives and how the rest of the OS names the disk drives? sar lists my disk drives as sd0, sd1, sd2, etc..... while format lists my disk drives as c1t0d0, c1t1d0, c1t2d0,etc... And also why sar shows 8 disks but format... (2 Replies)
Discussion started by: s ladd
2 Replies

9. Red Hat

Make a disk disappear from fdisk output

Hello, 1 ) Fdisk -l # Displays all the disk with partition table information My Query ) A ) How can i make one disk ex: /dev/sdd not visible in fdisk -l output ? B) From where fdisk -l collect and display the information ? (8 Replies)
Discussion started by: saurabh84g
8 Replies

10. UNIX for Beginners Questions & Answers

Script that verify output after make

Hi I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible show time that spent to compile each module. FYI 1: First run another script just go to the paths... (1 Reply)
Discussion started by: indeed_1
1 Replies
putc(3S)																  putc(3S)

NAME
putc(), putchar(), fputc(), putw() - put character or word on a stream SYNOPSIS
Obsolescent Interfaces DESCRIPTION
Writes the character c onto the output stream at the position where the file pointer, if defined, is pointing. is defined as and are defined both as macros and as functions. Same as but is a function rather than a macro, and can therefore be used as an argument. runs more slowly than but takes less space per invocation, and its name can be passed as an argument to a function. Writes the word (i.e., in C) w to the output stream (at the position at which the file pointer, if defined, is pointing). The size of a word is the size of an integer and varies from machine to machine. neither assumes nor causes special alignment in the file. Output streams, with the exception of the standard error stream are by default buffered if the output refers to a file and line-buffered if the output refers to a terminal. The standard error output stream, is by default unbuffered, but use of (see fopen(3S)) causes it to become buffered or line-buffered. or (see setbuf(3S)) can be used to change the stream's buffering strategy. put character on a stream. Obsolescent Interfaces put character or word on a stream. APPLICATION USAGE
After or is applied to a stream, the stream becomes byte-oriented (see orientation(5)). RETURN VALUE
On success, and each return the value they have written. On failure, they return the constant EOF, set the error indicator for the stream, and set to indicate the error. On success, and return 0. Otherwise, a non-zero value is returned, the error indicator for the stream is set, and is set to indicate the error. ERRORS
and fail if, either the stream is unbuffered or stream's buffer needed to be flushed causing an underlying call to be invoked, and: [EAGAIN] The flag is set for the file descriptor underlying stream and the process would be delayed in the write operation. [EBADF] The file descriptor underlying stream is not a valid file descriptor open for writing. [EFBIG] An attempt was made to write to a file that exceeds the process's file size limit or the maximum file size (see ulimit(2)). [EINTR] A signal was caught during the system call. [EIO] A physical I/O error has occurred, or the process is in a background process group and is attempting to write to its controlling terminal, is set, the process is neither ignoring nor blocking the signal, and the process group of the process is orphaned. [ENOSPC] There was no free space remaining on the device containing the file. [EPIPE] An attempt is made to write to a pipe or FIFO that is not open for reading by any process. A signal is also sent to the process. Additional values can be set by the underlying function (see write(2)). WARNINGS
The and routines are implemented as both library functions and macros. The macro versions, which are used by default, are defined in To obtain the library function either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in parentheses or use the function address. The following example illustrates each of these methods: ... ... ... ... Line buffering may cause confusion or malfunctioning of programs that use standard I/O routines but use themselves to read from standard input. When a large amount of computation is done after printing part of a line on an output terminal, it is necessary to (see fclose(3S)) the standard output before beginning the computation. The macro version of incorrectly treats the argument stream with side effects. In particular, the following call may not work as expected: The function version of or should be used instead. Because of possible differences in word length and byte ordering, files written using are machine-dependent, and may not be readable by on a different processor. is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use and Reentrant Interfaces If is defined, the locked versions of the library functions for and are used by default. SEE ALSO
fclose(3S), ferror(3S), flockfile(3S), fopen(3S), getc(3S), fread(3S), printf(3S), puts(3S), setbuf(3S), orientation(5), thread_safety(5). STANDARDS CONFORMANCE
putc(3S)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy