Tagged Questions
1
vote
2answers
42 views
Turning standard output hyphen into a single command
I am working with scripts that output xml and I am using xmllint to format the output. Xmllint requires a source argument, so I use the hyphen to pipe standard output to it:
$> script.php ...
1
vote
1answer
384 views
How can I get vsftpd version into shell variable?
I want to get vsftpd version into shell variable. I can get it to console with ease:
# vsftpd -version
vsftpd: version 2.2.2
Also I can get a lot of other info into variable:
# i=`bash --version ...
15
votes
3answers
1k views
How to do nothing forever in an elegant way?
I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: ...
4
votes
1answer
133 views
Discard stdout of a command for t seconds
I am working on some batch scripts involving the following:
Run some non-terminating sub-processes (asynchronously)
Wait for t seconds
Perform other task X for some time
Terminate subprocesses
...
3
votes
1answer
265 views
Shell script doesn't paint last line of stdout to screen without user input
I have a shell script that's happily doing all my backup process and writing progress to stderr and stdout, with one exception — the last line doesn't get written to my terminal (if I call the script ...