Linked Questions

4 votes
1 answer
933 views

I'm running a command like this: python mycode.py | tee foobar.log This code does a lot of "print" to stdout, and without the pipe I can see some output immediately. With the pipe and tee, however, ...
komark's user avatar
  • 197
0 votes
0 answers
48 views

I'm using iperf3 in Ubuntu 20. When not writing to a log file, iperf3 can provide a report every second with the -i 1 option. Using the --logfile option redirects all output to the file and inhibits ...
tim11g's user avatar
  • 2,033
123 votes
14 answers
175k views

I have a small script, which is called daily by crontab using the following command: /homedir/MyScript &> some_log.log The problem with this method is that some_log.log is only created after ...
olamundo's user avatar
  • 25.2k
56 votes
9 answers
55k views

Pretty new to Jenkins and I have simple yet annoying problem. When I run job (Build) on Jenkins I am triggering ruby command to execute my test script. Problem is Jenkins is not displaying output in ...
Haris Krajina's user avatar
7 votes
2 answers
8k views

I am trying to make a website where people can compile and run their code online, thus we need to find an interactive way for users to send instructions. Actually, what first comes to mind is exec() ...
dahui's user avatar
  • 125
6 votes
2 answers
6k views

I would need to output the output of a command on a file. Let's say my command is zip -r zip.zip directory , I would need to append/write (any of these options would be fine) to a file (let's say out....
Blax's user avatar
  • 598
9 votes
7 answers
1k views

I have a shell script with three echo statements: echo 'first message' echo 'second message' echo 'third message' I then run this script in node and collect the output via this code: var child =...
temporary_user_name's user avatar
4 votes
2 answers
2k views

I use the following command to see which VirtualHosts are getting traffic on my server (alternatives welcome). ngrep 'Host:' port 80 -t -W byline -q | grep '^Host' I want to be able to analyse ...
PeterB's user avatar
  • 2,329
4 votes
1 answer
2k views

I'm running a process using popen3, and trying to read the stdout stream. I want to be able to detect each character as it's put into stdout, but even using stdout.getc, I'm only able to get any ...
jsm's user avatar
  • 41
3 votes
2 answers
2k views

It must be really simple but I can't catch it. This is a trivial C program writing to stdout: root@oceanLondon:~/tst# cat tst.c #include <stdio.h> #include <unistd.h> int main(int argc, ...
wick's user avatar
  • 2,274
1 vote
3 answers
1k views

I want to kill a bash command when I found some string in the output. To clarify, I want the solution to be similar to a timeout command: timeout 10s looping_program.sh Which will execute the script: ...
Grifball's user avatar
  • 966
2 votes
1 answer
592 views

I'm trying to write to stdin and read from stdout ( and stderr ) from an external program, without changing the code. I've tried using named pipes, but stdout doesn't show until the program is ...
tay10r's user avatar
  • 4,366
4 votes
1 answer
432 views

When I run the mysql command line tool in non interactive mode and just watch the results, I see them as each query is executed. But if I pipe it to "tee", mysql is buffering the results and I only ...
msb's user avatar
  • 4,568
0 votes
1 answer
2k views

I am running an A.I. and trying to have the output displayed on the terminal while writing to a .csv file. The command was something like: $ ./run | tee rdata.csv And nothing happened, no output from ...
HughLXS's user avatar
  • 25
2 votes
1 answer
1k views

I am trying to use aria2c to download a file. The command looks like this: aria2c --http-user=$USER --http-passwd=$usepw -x 16 -s 100 $urlPath The command works perfectly from the script when run ...
user1199956's user avatar

15 30 50 per page