The stdout tag has no wiki summary.
0
votes
1answer
30 views
How can you move (or copy) all files of a certain type to a directory in Unix?
I'm not very familiar with all the tricks of grep/find/awk/xargs quite yet, so be patient with me =]
I have a particular file type say *.xxx, in random places throughout a certain directory. How can ...
0
votes
0answers
70 views
bash: redirect the stderr/stdout of a running process?
I have a running process running in a bash terminal that is printing some prompt, and I would like to send it to the background with the stderr/stdout prompt that is printing either redirected to ...
0
votes
0answers
73 views
STDOUT redirection to a file does not work if Groovy script run directly from command line (.groovy in PATHEXT)
I've updated the title, please see update below for the reason.
I have asked this question on Stackoverflow, but still didn't receive an answer.
Groovy: redirect stdout to a file does not work.
...
0
votes
1answer
57 views
Different output when redirecting
$ mysql -e 'select a,b from tablefoo' databasename
yields
+---+---+
| a | b |
+---+---+
| 1 | 0 |
| 2 | 1 |
+---+---+
whereas
$ mysql -e 'select a,b from tablefoo' databasename > file
...
0
votes
1answer
66 views
How to tar/untar the output on the fly
What is the idiomatic way to do the following
tar to stdout
read this tar output from stdout and extract to some other folder.
My solution is
tar --to-stdout .. | tar -C somefolder -xvf -
But ...
1
vote
2answers
122 views
What is the use of binary output on stdout?
Some programs print their binary output directly on stdout. Here are some examples:
tar -c file.png
dd if=file.png
Well, I see that the output can be redirected to a file. But these programs ...
1
vote
1answer
77 views
bash - record output after program execution
I know that I can redirect stdout to a file before running a script, but is there a way to access the whole output of a program that already ran? When the output is too long it gets cut out by the ...
0
votes
1answer
16 views
Piping results back into the program that generates them
I've got a program that can take input from stdin and produces output in the stdout like this:
cat initial_input.txt | myprogram myindex myoptions - | filter_output > outfile.txt
The program ...
2
votes
3answers
677 views
Log rotation of stdout?
I have a Linux program which can write information to stdout and stderr.
I have a shell script which redirects that output to a file in /var/log. (Via >> and 2>&1.)
Is there a way to ...
2
votes
2answers
727 views
Redirect 7-zip's command-line output to /dev/null on Windows when extracting a 7z file
I have a command such as "c:\program files\7-zip\7z.exe" x foo.7z -y which will extract (with full paths) to the current directory.
What it does that I don't want, though, is spool out the individual ...
7
votes
2answers
753 views
Windows: Command line redirection to text file while also seeing output
I'm writing a C program in Windows, my printf calls print to the command line, and I know that I can redirect all this output to a text file using:
myProgram.exe > mylog.txt
However, I wish to ...
1
vote
1answer
66 views
Do each application need to support writing to /dev/stdout or /dev/fd1 or is that handled transparently by the OS?
I tried this command to print the buffer of an existing screen session to stdout but I don't know why it doesn't print anything.
screen -x lftp -X hardcopy /dev/fd/1
screen -x lftp -X hardcopy ...
1
vote
1answer
329 views
copy (split?) stdout instead of redirecting it
In Bash, I'd like to redirect stdout to a file (>> mylog.txt) but also see the stdout output on the screen..
How can I do it with bash?
0
votes
1answer
454 views
Windows how to redirect file parameter to stdout? (Windows equivalent of `/dev/stdout`)
Windows console:
Tool A can write binary data to a file, but has no option for telling it to use stdout.
Tool B can read binary data from stdin and process the info in it.
How can I get the output ...
2
votes
2answers
106 views
Doing arithmetic and passing it to the next command
I know how to do this in /bin/sh, but I'm struggling a bit in Windows.
I know you can do arithmetic on 32-bit signed integers with
SET /a 2+2
4
But how do I pass this to the next command? For ...
0
votes
2answers
122 views
pipe a program into less
I'm taking the dive into setting up and learning git and at the same time learning bash. I'm trying to do something simple as view the help section of
$ git config
unfortunately, when I type that ...
1
vote
2answers
159 views
Keep stdout on screen AND in File
I open a command prompt window in XP. There I run a command line program (foo.exe) and I want to capture stdout in a file. So I run it like this:
foo > fooResult.txt
However, at the same time I ...
2
votes
3answers
408 views
java -version doesn't write to stdout?
Either I'm doing something silly or Sun is. How come something like:
java -version > version.txt
Still prints out to stdout and leaves version.txt empty? I'm checking out the exit code, and it's ...
0
votes
2answers
91 views
linux output show only right of ':'
I forgot a lot of my command line. I am doing cat file | grep "error" and i would like it to show everything to the right of G:/ including G:/ if possible. I figure its an awk command but i dont know ...
0
votes
0answers
260 views
user crontabs don't work, only /etc/crontab
Hi when I use the command
crontab -e
to set up cron, the commands get triggered (according to syslog) but nothing happens. Also if I run sudo crontab -e.
The only way to actually get cron working ...
2
votes
2answers
394 views
stdout and stderr of script doesn't get redirected when executed by cron
./script &>> log.txt
I get a nice logfile, but if I have the same command executed by cron, lets say the crontab looks like this:
* * * * * '/home/user/script &>> /home/user/log.txt'
...
0
votes
1answer
58 views
stdout and key press
when in console, if I press a key, some interrupt controller sends code of that key to CPU, which looks into some table and than represent that keypress by printing some charracter to stdout. But, is ...
4
votes
1answer
2k views
tee for Windows?
Does Windows provide the basic tee facility for copying standard input to an arbitrary set of files and then back out to standard output?
I generally download a generic tee program, but curious if ...
1
vote
1answer
798 views
How to I configure Eclipse PDT 2.1 to display PHP CLI output in the console?
Starting with a recent version of Eclipse PDT, the standard out and standard error from executed PHP CLI code doesn't appear in the console anymore. (It still shows up in the Debug-perspective in the ...