The output tag has no wiki summary.
4
votes
0answers
50 views
Is there a way to mirror USB outputs?
I'm currently writing a program for a project.
It is for a braille reading system where I have a braille display connected via USB that is controlled by a program called brltty.
One of the ...
2
votes
1answer
26 views
How can I silence ssh-agent?
I have a script like this one at my .bashrc file at the mysuer home:
eval `ssh-agent`
ssh-add /path/to/my/key
The problem is I have this output when I log with the user mysuer (su - myuser):
Agent ...
1
vote
2answers
62 views
How to decrease ps aux output to a few lines?
When my computer is slowing down, I usually run ps aux --sort -rss to find out which process consumes too much memory. There may be a lot of processes. How to see only a few ones?
1
vote
1answer
44 views
Unsure about the behaviour of my script when writing to log file
I have a very simple ksh script and at certain points I want to write to a log file. I use the following commands in two places...
print "Directory listing 1:\n" > ${LogFile}
ll >> ...
2
votes
2answers
93 views
Using Diff with -y to get side-by-side output
I am trying to use diff with -y to get side-by-side output, but my output gets messed up after about 18 lines. Here is an example, any clue why? (Check from *.java_pool_size=134217728) :
...
1
vote
2answers
74 views
How can I see output from a command progressively?
I have fired an ls -1 command that runs and displays a long list of values. When the command ends I can not see the output which is outside the screen vertical length. How can I see those previous ...
1
vote
3answers
161 views
How to view output for ALL processes simultaneously?
I know that you can connect to various background processes to watch their console output, but is there a way to view the output of all processes at once? Likely it would scroll quickly and be hard to ...
1
vote
1answer
454 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 ...
3
votes
2answers
155 views
Limit stdout from a continuously running process
I haven't had much luck finding an answer to my problem, but maybe I'm not asking for it correctly.
I have a process I startup like the following:
nohup ping 127.0.0.1 > log.txt >2>&1 &
...
1
vote
1answer
135 views
How to change output of time command?
How would you change the output of the time command from:
real 0m12.304s
user 0m10.187s
sys 0m1.699s
To:
12.30s
EDIT: Using bash (OSX)
5
votes
1answer
384 views
How to send output to both screen and mail?
I use the following to send an email at the end of a script.
echo "Script finished on `date`" | /usr/bin/Mail -s "Script complete" "myaccount@myserver.com".
However, I want to echo the same message ...
8
votes
3answers
843 views
Converting colored output into html
There are tools providing coloured output:
dwdiff -c File1 File2 # word level diff
grep --color=always # we all know this guy
...
The question is: How to convert their colored output of arbitrary ...
3
votes
1answer
249 views
Evaluating the return value of a command line
How do I evaluate or calculate the return value of a command line?
For exemple, I count the number of lines with a grep and I want to know if that value is above X. If so, I want to print the number ...
4
votes
2answers
247 views
how to redirect terminal output to multiple log files
I've been trying redirect output to logfiles but should NOT be displayed on terminal, but following command does output both on terminal and in logs. Any ideas are appreciated.
(some_cmd | tee -a ...
1
vote
1answer
494 views
For cygwin, how do I export the output in a terminal into a file?
I'd like to be able to export the output (and error messages) of my cygwin terminal in a file, especially since I have to click a lot of buttons in order to "mark" the stuff in the cygwin terminal ...
2
votes
1answer
263 views
Where does the output go from `at` and `cron` jobs
Where does standard output go given there is now screen?
It's not appearing in the same directory or my home directory.
How could I actually figure this out given that I don't know how to run debug ...
5
votes
2answers
2k views
tail program output to file in Linux
I know we can use below format to redirect the screen output to a file:
$ your_program > /tmp/output.txt
However when I used below command, it says "-bash: /home/user/errors.txt: Permission ...
3
votes
4answers
657 views
Leave remote command running storing output
Scenario;
I have SSH'ed to a machine, opened a new screen session, and fired off a script.
Some days later I SSH back to that machine, re-attach the screen session and look at the output that has ...