How can I log the stdout of a process started by start-stop-daemon??

I am using an init script to run a simple process, which is started with: start-stop-daemon --start --quiet --chuid...

What does it mean to write to stdout in C??

Does a program that writes to "stdout" write to a file? the screen? I don't understand what it means to write to s...

How can I run an external command and capture its output in Perl??

I'm new to Perl and want to know of a way to run an external command (call it prg) in the following scenarios: Run...

Scanf/Printf double variable C?

Let's say I have this following bit of code in C: double var; scanf("%lf", &var); printf("%lf", var); printf("%...

What does > /dev/null 2>&1 || true mean in Linux??

"command "> /dev/null 2>&1 || true Now I get that we are sending the output of a command we run, to a ...

How can I stop cat output immediately despite massive output??

I'm looking for someway to stop the output to STDOUT when I realize a command is wrong. For instance, if I accidenta...

Redirect Eclipse's console / ouput to a text file?

I'm doing a Java project using Eclipse. Currently by default, it shows the output in the Console. Is there any way t...

Pipe gunzip and mysql to gunzip a dump and import it?

I have a .gz sql dump file (example: foo.sql.gz) that i want import in my database with the classic mysql command. ...

How do you redirect wget response to standard out??

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the ou...