Questions tagged [stdout]
71 questions
1
vote
1 answer
Redirect rpccclient output
This is such a simple task I must be overlooking something. I am using rpcclient to dump some data and I cannot seem to figure out how to redirect the output to a file.
The standard > doesn't seem to work when I am in the tool and I do not see…

Joe
- 161
- 1
- 11
1
vote
1 answer
Debugging rsync over SSH in verbose mode using tee to redirect stdout to log file
I have been having issues with various rsync operations over SSH, on a particular machine on our network, failing and giving errors like:
rsync: connection unexpectedly closed (45482 bytes received so far) [generator]
I found a similar post (rsync…

PicoutputCls
- 253
- 4
- 15
1
vote
1 answer
How do I pipe stdout and std error to a file and back to stdout on Windows?
On Windows when running a batch script I want to record the output of I run:
myprogram.bat 1> mylog.log 2>&1
Which is great - but I have to run a separate tail process to read the output in another window. What I want is to be able to record it to…

Hawkeye
- 2,699
- 9
- 30
- 35
1
vote
1 answer
Ansible loops and conditions with arrays
I want to be able to control the behaviour of a module by specifying a changed_when condition. This works fine when executing a simple task like the one in the docs:
- command: some command
register: command_result
changed_when:…

EvilTorbalan
- 625
- 4
- 10
1
vote
1 answer
How to append unix timestamp to each line output file
I'm running the following command and storing the stdout into a text file. I need to add unix timestamp to each line output file to figure out start and end time of each operation.
$ ./bin/ycsb load mongodb -s -P workloads/workloada -p…

hossein
- 181
- 1
- 1
- 8
1
vote
0 answers
Losing stdout when process restarts itself in windows
I have for example a NodeJS process running with Nodemon, and all the output redirected to a file.
nodemon example.app > 123.log
When I change any file in the node app, the NodeJS process is restarting itself and after that all log messages go to…

marty
- 41
- 2
1
vote
0 answers
Display only the last line of a windows command line executable
I'm trying to write a batch script that manages simple software deployments. One of the steps in the script compresses a file structure into a 7zip archive.
During the compression process, the z7ip command line application outputs the current file…

munroan
- 11
- 2
1
vote
1 answer
suppress output of hping in Linux
I wish to suppress all output to stdout (console) from hping3 from a bash script, but everything I try results in the statistics still being displayed, even tho the individual ping results are suppressed.
I've tried redirecting different ways,…

schroeder
- 276
- 2
- 4
- 15
1
vote
1 answer
stdout, stderr, and what else? (going insane parsing slapadd output)
I am using slapadd to restore a backup. That backup contains 45k entries which takes a while to restore so I need to get some progress update from slapadd. Luckily for me there is the -v switch which gives an output similar to this one:
added:…

Max
- 3,523
- 16
- 53
- 71
1
vote
4 answers
Command to execute another command while replaying the command on STDOUT
It's not easy to formulate the question properly, maybe it helps when I describe what I'd like to do.
I want to execute a command and pipe it's output into a tool called pastebinit which uploads the STDOUT output to pastebin.
That works very well,…

hakre
- 156
- 1
- 14
1
vote
3 answers
Redirect cronjob STDOUT and STDERR to /dev/null not working
I'm baffled as to why this isn't working.
I've tried redirecting STDOUT and STDERR using "&>" and also "2>&1" and neither seems to work. I still get e-mailed by this cron job (every minute!) with smbclient complaining that there are no files in the…

Aaron C. de Bruyn
- 588
- 10
- 30
1
vote
1 answer
Windows XP, pipe StdOut to Commandline
As an example, I would like the following commands to put a dir listing with all subdirectories to StdOut
copy con test
/s^Z
dir `test`
So, after lines one and two, there's a file in the current directory called test containing /s. Line three…

lmat - Reinstate Monica
- 189
- 2
- 12
1
vote
1 answer
how to see the verbose output of a process that is running that writes to a file (shred)
I am running the shred command to securely wipe some storage.
I would like to see its progress, but have lost the ssh terminal that was running the command.
Is there a way that I can use to see the verbose output of the shred command from a new ssh…

miller the gorilla
- 111
- 1
1
vote
0 answers
Given a command whose STDOUT prints to several lines, how might I format each of them (e.g. prepend a string, change a color, etc.)
Okay, so, contrived example here, but it's the simplest instance I could come up with the produces the conditions I'm trying to alter.
I'm trying to run a black-boxed command and alter the multi-line output. So say git diff --name-only, which…

NerdyDeeds
- 111
- 1
1
vote
1 answer
Supervisord services not outputting to docker-compose console
I have a docker container that runs several services inside it. I want each service to have it's output sent to the console. The is a development container so I want to see all output as I work.
I tried this file:
[supervisord]
nodaemon=true
…

Guerrilla
- 243
- 7
- 18