Question:
Unix commands with lots of output?
2008-12-03 16:08:23 UTC
Ok. So the boss is down for a couple of days. And I've very little work assigned to me. And I'm looking for any way I can make it look like I'm busy.

One way I thought I could do this is have a unix shell open on my screen that shows lots of scrolling text output, that would appear to be a tailing log or a compiling program or some diagnostic program.

Any ideas on some good UNIX commands or an easy script that will help me achieve maximum laziness. Basically, lots of scrolling semi-gibberish text, that essentially does nothing. I'm running a Ubuntu distro.

Truthfully, I would do real work, have I had some.
Three answers:
2016-11-18 09:43:35 UTC
you have your sturdy start up outstanding there. you at the instant are not allowed to apply the "equipment ()" call. it may be straight forward and for this reason 'cheating'. if (fork () != 0) { // Fork off baby technique . . . /* discern Code */ . . . waitpid (-a million, &status, 0); // watch for baby to go out } else { . . . /* baby Code */ . . . execve (command, parameters, 0); // Execute command } // i exploit dots right here to indent because of the fact Y!A reformats. so which you fork the same on your technique, then at present replace it with the "exec" that runs yet another programme (the unix command thus). What you're lacking is the "pipe" and "close" purposes. you're making a pipe between the discern and baby tactics. The discern closes one end, the baby then opens it as stdout, which the discern then reads fro the baby. undergo in ideas that stdin is FD0, and stdout is FD1. So make helpful that the discern is analyzing the FD1 that the baby opened. needless to say the baby technique basically echoes to stdout regardless. Create a pipe (use "pipe") earlier the fork.
Tizio 008
2008-12-03 16:18:41 UTC
?

are you interested in that output?

if no, just redirect to /dev/null



are you interested in part of... according to keywords? use grep to select lines containing the keyword (and a context, if you want, with -A and -B)...



it is a "structured" log? just imagine yourself a script to extract the info you are interested and reformat them, then nicely outputting... (awk can help alot, or perl, or... too many...)
2008-12-03 16:12:29 UTC
Go grab the kernel and run a loop to compile it. :)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...