09-23-2008
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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
ost_mimemultipart
ost::MIMEMultipart(3) Library Functions Manual ost::MIMEMultipart(3)
NAME
ost::MIMEMultipart -
A container class for multi-part MIME document objects which can be streamed to a std::ostream destination.
SYNOPSIS
#include <mime.h>
Inherited by ost::MIMEMultipartForm.
Public Member Functions
MIMEMultipart (const char *document)
Contruct a multi-part document, and describe it's type.
virtual void head (std::ostream *output)
Stream the headers of the multi-part document.
virtual void body (std::ostream *output)
Stream the 'body' of the multi-part document.
char ** getHeaders (void)
Get a string array of the headers to use.
Protected Member Functions
virtual ~MIMEMultipart ()
Protected Attributes
char boundry [8]
char mtype [80]
char * header [16]
MIMEItemPart * first
MIMEItemPart * last
Friends
class __EXPORT MIMEItemPart
Detailed Description
A container class for multi-part MIME document objects which can be streamed to a std::ostream destination.
Author:
David Sugar dyfet@ostel.com container for streamable multi-part MIME documents.
Constructor & Destructor Documentation
virtual ost::MIMEMultipart::~MIMEMultipart () [protected], [virtual]
ost::MIMEMultipart::MIMEMultipart (const char *document)
Contruct a multi-part document, and describe it's type. Parameters:
document (content) type.
Member Function Documentation
virtual void ost::MIMEMultipart::body (std::ostream *output) [virtual]
Stream the 'body' of the multi-part document. This involves streaming the headers and body of each document part.
Parameters:
output to stream document body into.
char** ost::MIMEMultipart::getHeaders (void) [inline]
Get a string array of the headers to use. This is used to assist URLStream::post.
Returns:
array of headers.
virtual void ost::MIMEMultipart::head (std::ostream *output) [virtual]
Stream the headers of the multi-part document. The headers of individual entities are streamed as part of the body.
Parameters:
output to stream document header into.
Friends And Related Function Documentation
friend class __EXPORT MIMEItemPart [friend]
Member Data Documentation
char ost::MIMEMultipart::boundry[8] [protected]
MIMEItemPart* ost::MIMEMultipart::first [protected]
char* ost::MIMEMultipart::header[16] [protected]
MIMEItemPart * ost::MIMEMultipart::last [protected]
char ost::MIMEMultipart::mtype[80] [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::MIMEMultipart(3)