Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
10-18-2006, 01:47 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2006
Posts: 3
Rep:
|
Shell command's output (re)direction
Hi all,
I would like something like this:
pacman -S mc > stdout > mc.log
So, I would like to interact with the pacman. And in the same time I want to (re)direct it's result to a file.
Is that possible?
|
|
|
|
10-18-2006, 02:04 PM
|
#2
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Only if pacman allows interaction.
|
|
|
|
10-19-2006, 12:53 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2006
Posts: 3
Original Poster
Rep:
|
Chris, that is great!
THX...
|
|
|
|
10-19-2006, 01:21 PM
|
#5
|
|
Member
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249
Rep:
|
I don't know about bash, but zsh can do multiple redirection itself, e.g.
Code:
echo FOO > foo1 > foo2
will create both foo1 and foo2. Doesn't seem to work in bash, but it may have an option for it (zsh requires multios option set).
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|