Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-21-2005, 02:50 AM   #1
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
how to eliminate prelink messages while running the script


i am running couple of commands in a for
for i in $packagename; do
rpm -qi <packagename>
rpm -ql <packagenaem>

there are 1000 packages.I am redirecting the whole output into a file(in current directory).
The script is running fine.The output also achieved.

But the problem is whenever the script executing ...
it is gving the some messages like:

prelink: /tmp/#prelink#.eqBJ8y: Recorded 7 dependencies, now seeing -1

prelink: /tmp/#prelink#.C1ePbN: Recorded 32 dependencies, now seeing -1

prelink: /tmp/#prelink#.oMtyCR: Recorded 12 dependencies, now seeing -1

prelink: /tmp/#prelink#.GfthsY: Recorded 15 dependencies, now seeing -1

My questions are:
1.what are these messages and why it is giving?
*** can i eliminate those msgs while running my script?

Can you please help me.
Old 01-20-2006, 06:06 PM   #2
LQ Newbie
Registered: Feb 2005
Location: Tampere, Finland
Distribution: Fedora Core 6
Posts: 26

Rep: Reputation: 15
You can redirect error messages to some other place using
./ 2>/dev/null
In this case error messages are directed to /dev/null and thus you're not seeing them anymore. I'm assuming that prelink messages are errors, of course.

Other options are piping output for example to grep and grepping those nuisances out with
Code: | grep -v prelink > output.file

Last edited by Jamo; 01-20-2006 at 06:12 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
prelink amnesty_puppy Debian 4 05-11-2005 01:57 PM
How to eliminate the spyware ? emailssent General 32 11-01-2004 10:49 PM
Script to send messages to Phone aldrinn Linux - General 1 03-25-2004 12:30 PM
Trigger script by message in /var/log/messages? Zoidy Linux - Software 3 01-17-2004 01:03 AM
How do i eliminate services or daemons running at the beginning? dark poet Linux - Software 1 09-16-2003 03:51 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration