08-20-2003
Nope, you have one STDIN, STDOUT, STDERR device redirected to your TTY, you can choose to redirect it to a file, but not both without using tee.
If you are searching for this in cause of user auditing, there are multiple methods for it. Please us know if this is the case.
Regs David
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a program that is reading strings into a vector from a file. Currently I am using this command:
a.out < file1
The program runs and prints the contents of the vector to the screen, like its supposed to. The problem is that it needs to read in 3 files to fill the vector. Is there anyway... (4 Replies)
Discussion started by: Matrix_Prime
4 Replies
2. Shell Programming and Scripting
Hello,
I have a java program which i am calling in shell script. I wanted to redirect output to 2 differetn files. Output should have both 1 & 2 (normal and error) in both file.
pls help (2 Replies)
Discussion started by: balareddy
2 Replies
3. Shell Programming and Scripting
Hi
There are many posts in this forum regarding reditecting output, but mine is a different problem, please have a look.
My shell script is redirecting output to a log file dynamically. That is it is using -
exec > log1.txt 2>&1
Hence all the traces are appearing in the log1.txt.
I want... (3 Replies)
Discussion started by: nsinha
3 Replies
4. Shell Programming and Scripting
How to redirect the output to multiple files without putting on console
I tried tee but it writes to STDOUT , which I do not want.
Test.sh
------------------
#!/bin/ksh
echo "Hello " tee -a file1 file2
----------------------------
$>./Test.sh
$>
Expected output:
-------------------... (2 Replies)
Discussion started by: prashant43
2 Replies
5. Shell Programming and Scripting
I have a program that runs like "cat f1 - f2 -", I need to write shell script to run the program whose standard input will be redirected from 2 files. I spend a whole day on it, but didn't figure out. Can someone help me out? Thanks! (8 Replies)
Discussion started by: microstarwwx
8 Replies
6. Shell Programming and Scripting
Hi everyone!!
I have a database table, which has file_name as one of its fields.
Example:
File_ID File_Name Directory Size
0001 UNO_1232 /apps/opt 234
0002 UNO_1234 /apps/opt 788
0003 UNO_1235 /apps/opt 897
0004 UNO_1236 /apps/opt 568
I have to... (3 Replies)
Discussion started by: ss3944
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
i know how to
a) redirect stdout and stderr to one file,
b) and write to two files concurrently with same output using tee command
Now, i want to do both the above together.
I have a script and it should write both stdout and stderr in one file and also write the same content to... (8 Replies)
Discussion started by: ysrini
8 Replies
8. Shell Programming and Scripting
Hi,
I am new to script and I want find one string from multiple files in diff directories and put that out put to new file.
Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt
Now I want write script to find the string... (8 Replies)
Discussion started by: Mahessh123
8 Replies
9. Shell Programming and Scripting
hi,
i want to redirect my output & error if generated to two different files. I
have written the code for redirecting the output, i dnt have ne idea how to
go abt it for errors. I tried spooling which was given in one of the
threads on this forum.But it didn't work.The script i wrote as a lot... (4 Replies)
Discussion started by: bankimmehta
4 Replies
10. Shell Programming and Scripting
I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Discussion started by: HLee1981
4 Replies
LEARN ABOUT DEBIAN
brawchannel
BRAWCHANNEL(1) General Commands Manual BRAWCHANNEL(1)
NAME
brawchannel - Barry Project's program to create a channel to a BlackBerry application
SYNOPSIS
brawchannel [-h][-p pin][-P pass][-v] <channel name>
DESCRIPTION
brawchannel is a tool for connecting to an application channel on a BlackBerry device, as provided to on device programs by the
net.rim.device.api.system.USBPort API. Data received on the channel will be output to STDOUT and any data received on STDIN in will be sent
over the channel. Any errors or verbose output will be written to STDERR. The channel name provided to this program should be the same as
the channel name passed to the call to net.rim.device.api.system.USBPort.registerChannel
OPTIONS
-h Display a command help summary.
-p pin Specifies the PIN number of the device with which you wish to communicate, when multiple devices are connected.
-P password
A simplistic method to specify the device password.
-v Verbose debug output. This enables dumping of USB bus scanning, as well as the protocol packets used during communication. This
will cause libusb to output information on STDOUT, which will usually be undesirable. Setting the environment variable USB_DEBUG to
0, 1 or 2 should prevent any addition output on STDOUT.
AUTHOR
brawchannel was initially written for the Barry project by RealVNC Ltd., based on bjavaloader by Nicolas Vivien.
SEE ALSO
http://www.netdirect.ca/software/packages/barry
August 17, 2010 BRAWCHANNEL(1)