Sponsored Content
Operating Systems AIX Redirecting Both to a file and std output Post 302239471 by KiwiP on Tuesday 23rd of September 2008 07:22:39 PM
Old 09-23-2008
Hi

Use "tee" >>>

print "hello world" | tee /tmp/outfile

Cheers
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

redirecting output to file in network

Hi Experts, Is it possible to redirect the output of an unix command to file. when i "telnet" to a remote system and execute the redirection operation, such that the result should outputted to my system. $ telnet IPaddr2 username : zzzzz password : ******** IPaddr2>ls > file <- i... (1 Reply)
Discussion started by: anent
1 Replies

2. UNIX for Dummies Questions & Answers

Redirecting output file to a different server.

Hi, I hope this is problem makes sense and that someone can offer some advice. Basically i have a perl script which accesses a database and outputs the information to a file. Is it possible to use a 'system' command to embeb some Unix command which moves that file to another directory... (3 Replies)
Discussion started by: Stormrider
3 Replies

3. 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

4. Shell Programming and Scripting

Redirecting <talk> output to a file

Is it possible to run <talk> such that both sides of the conversation are written to the screen and also to a file? I use the utility to chat with collaborators and sometimes it would be nice to have a record of our conversation while we are problem solving. I am running OS X, so <talk>... (4 Replies)
Discussion started by: cej
4 Replies

5. 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

6. Shell Programming and Scripting

redirecting std error

Hi, I use the following command make all > output-`date +%F-%H-%M-%S`.txt 2>&1 to invoke a MAKE process that takes some weeks to complete. The ouput is redirected to a text file. Now I prefix the above command with time to get time needed for completion of the MAKE process time make... (2 Replies)
Discussion started by: gkamendje
2 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. Shell Programming and Scripting

Redirecting output to file

Hi, Below is the whole string which is to be redirected to the new file. su - oracle -c "exp $user/$pass file=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.dmp log=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.log tables=table1,table2 statistics=none" ... (3 Replies)
Discussion started by: milink
3 Replies

9. UNIX for Dummies Questions & Answers

redirecting the script output to more than 1 file

Hi, I want to redirect my script output to more than one file without printing the result to the screen. How to do that? ex: echo "hi" >> a.txt b.txt cat a.txt hi b.txt :confused: (2 Replies)
Discussion started by: boopathyvasagam
2 Replies

10. Shell Programming and Scripting

Redirecting output to file

Hi, I have created script which redirect the output to file.I am able to get the output in file but not in the format. Output :Content of the log which have 10 -15 lines. Actal :Line1 ..Line 2Line3 Line4 Line 5 Expected:Line1 Line 2 Line3 Please... (7 Replies)
Discussion started by: karthik771
7 Replies
std::discrete_distribution< _IntType >(3cxx)							      std::discrete_distribution< _IntType >(3cxx)

NAME
std::discrete_distribution< _IntType > - SYNOPSIS
Classes struct param_type Public Types typedef _IntType result_type Public Member Functions template<typename _InputIterator > discrete_distribution (_InputIterator __wbegin, _InputIterator __wend) discrete_distribution (initializer_list< double > __wl) template<typename _Func > discrete_distribution (size_t __nw, double __xmin, double __xmax, _Func __fw) discrete_distribution (const param_type &__p) result_type max () const result_type min () const template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng) template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p) param_type param () const void param (const param_type &__param) std::vector< double > probabilities () const void reset () Friends template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &, const std::discrete_distribution< _IntType1 > &)" template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &, std::discrete_distribution< _IntType1 > &)" Detailed Description template<typename _IntType = int>class std::discrete_distribution< _IntType > A discrete_distribution random number distribution. The formula for the discrete probability mass function is Definition at line 4666 of file random.h. Member Typedef Documentation template<typename _IntType = int> typedef _IntType std::discrete_distribution< _IntType >::result_type The type of the range of the distribution. Definition at line 4673 of file random.h. Member Function Documentation template<typename _IntType = int> result_type std::discrete_distribution< _IntType >::max () const [inline] Returns the least upper bound value of the distribution. Definition at line 4786 of file random.h. References std::vector< _Tp, _Alloc >::empty(), and std::vector< _Tp, _Alloc >::size(). template<typename _IntType = int> result_type std::discrete_distribution< _IntType >::min () const [inline] Returns the greatest lower bound value of the distribution. Definition at line 4779 of file random.h. template<typename _IntType = int> template<typename _UniformRandomNumberGenerator > result_type std::discrete_distribution< _IntType >::operator() (_UniformRandomNumberGenerator &__urng) [inline] Generating functions. Definition at line 4797 of file random.h. References std::discrete_distribution< _IntType >::operator()(), and std::discrete_distribution< _IntType >::param(). Referenced by std::discrete_distribution< _IntType >::operator()(). template<typename _IntType = int> param_type std::discrete_distribution< _IntType >::param () const [inline] Returns the parameter set of the distribution. Definition at line 4764 of file random.h. Referenced by std::discrete_distribution< _IntType >::operator()(), and std::operator==(). template<typename _IntType = int> void std::discrete_distribution< _IntType >::param (const param_type &__param) [inline] Sets the parameter set of the distribution. Parameters: __param The new parameter set of the distribution. Definition at line 4772 of file random.h. template<typename _IntType = int> std::vector<double> std::discrete_distribution< _IntType >::probabilities () const [inline] Returns the probabilities of the distribution. Definition at line 4754 of file random.h. References std::vector< _Tp, _Alloc >::empty(). template<typename _IntType = int> void std::discrete_distribution< _IntType >::reset () [inline] Resets the distribution state. Definition at line 4747 of file random.h. Friends And Related Function Documentation template<typename _IntType = int> template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_ostream<_CharT, _Traits>& operator<< (std::basic_ostream< _CharT, _Traits > &, const std::discrete_distribution< _IntType1 > &) [friend] Inserts a discrete_distribution random number distribution __x into the output stream __os. Parameters: __os An output stream. __x A discrete_distribution random number distribution. Returns: The output stream with the state of __x inserted or in an error state. template<typename _IntType = int> template<typename _IntType1 , typename _CharT , typename _Traits > std::basic_istream<_CharT, _Traits>& operator>> (std::basic_istream< _CharT, _Traits > &, std::discrete_distribution< _IntType1 > &) [friend] Extracts a discrete_distribution random number distribution __x from the input stream __is. Parameters: __is An input stream. __x A discrete_distribution random number generator engine. Returns: The input stream with __x extracted or in an error state. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::discrete_distribution< _IntType >(3cxx)
All times are GMT -4. The time now is 12:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy