[ale] bash commands

Lightner, Jeff JLightner at water.com
Mon May 21 10:31:20 EDT 2012


Is ALE mailer broken?  I got this email 3 times.





-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Matthew
Sent: Monday, May 21, 2012 10:03 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] bash commands

Never use pipe | for that, usually in this context, "cat doc |grep hello"

On 5/21/12, Geoffrey Myers <lists at serioustechnology.com> wrote:
> On 05/18/2012 05:27 PM, Drifter wrote:
>> I keep reminding myself that I don't begin to know what I think I know!
>> :(
>>
>> I am about to upgrade this box, finally from FC 13 to FC 14.
>> Ought to be simple enough.  I have the CD, which I think will do a
>> clean install onto a software RAID.
>>
>> Prior to that I really ought to have on hand a list of all the
>> installed packages.
>>
>> So I created a file<app_list.txt>  on the Desktop and then tried this:
>>
>> yum list installed | ~/Desktop/app_list.txt and got back this
>>
>> bash: /home/kilpatms/Desktop/app_list.txt: Permission denied
>>
>> WTF!
>
> The | is used to send the put of a command for processing by another
> command, thus your attempt above is going to try to execute your
> app_list.txt file.  You want to redirect the output to the file:
>
> yum list installed > ~/Desktop/app_list.txt
>
>>
>> So I checked the perms on the existing (empty) file and they were
>> correct.
>> Then I tried the same thing as root, expanding the ~/ and got the
>> same response.
>>
>> So, How DO I make yum throw a list of the installed packages to a
>> text file rather than to the terminal?
>>
>> Sean
>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>
>
> --
> Until later, Geoffrey
>
> "I predict future happiness for America if they can prevent the
> government from wasting the labors of the people under the pretense of
> taking care of them."
> - Thomas Jefferson
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>

--
Sent from my mobile device

SimonTek
912-398-6704
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo




Athena(r), Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------




More information about the Ale mailing list