Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Send output of command to screen and to multiple files


 
Thread Tools Search this Thread
# 1  
Send output of command to screen and to multiple files

Hi there,

I'm a newbie to Unix (taking a course in it right now) and I don't know how to do the following in bash:

I need to write a command to display information about the used and free space on the file system, showing only local file systems, and then send the output of the command to the screen and to three files named status1, status2, and status3. Do this all in one command line.

so far I have

free -mt > status1>status2 > status3

and that put what I wanted in the 3 files...but it doesn't output that info to the screen.....

Thanks in advance for any help you have
# 2  
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Send multiple HTML output in one mail
Vivekit82
HI, I have two scripts which is sending the mail in html format. Script 1: 1.IFILE=/home/home01/Report.csv if #Checks if file exists and readable then if awk -F, '{ T += $13 } END { exit(!T) }' ${IFILE} then awk -F, 'BEGIN{ c=split("3,4,8,9,13", col) print "To:...... Shell Programming and Scripting
0
Shell Programming and Scripting
command output to variable assignment and screen simultaneously
mbm
Hello Folks, I have a script that runs a command (rsync) that sometimes takes a long time to complete and produces diagnostic output on stdout as it runs. I am currently capturing this output in a variable and using it further in the script. I would like to continue to capture this output...... Shell Programming and Scripting
2
Shell Programming and Scripting
help in redirecting output to multiple logfiles without displaying it on the screen
akhila
Hi, 1.some_command > logfile1 2>&1 will redirect everything to the file logfile1 without displaying the output of the command on the screen. 2.some_command | tee logfile1 | tee logfile2will redirect the output to logfile1 and logfile2, as well as display the output of the command on the...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
Seeing the screen output beyond the scroll capability for the last run command
bimukt
HI , I forgot to redirect my op to a file.The op which is quite huge , thus printed on the screen.However bcoz of the limited viewing in the screenI can not see the whole of the output.. Is there anyway I can see the full op.My run takes half a day for finnishing ..So I am refraining...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
GNU Screen: Send to Multiple Screens at Once?
deckard
There is a feature that I used in KDE's Konsole that I really miss when I'm on a non-GUI server. The ability to "broadcast" what I type to all open windows. That led me to wonder if this could be done with GNU screen (since it can do a whole lot of other cool stuff)? Basically, it would be...... UNIX for Advanced & Expert Users
3
UNIX for Advanced & Expert Users

Featured Tech Videos