Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd January 2007, 08:44 AM
thewoland Offline
Registered User
 
Join Date: Jun 2005
Location: Israel
Age: 33
Posts: 2
Question Where can I find realpath

I need 'realpath' in order to make a script to work.
I couldn't find any package that would contain it.
In some ALT Linux versions it resides in 'coreutils' package, however in FC there is no such binary.

Where can I find it?
__________________
Ubuntu Edgy at home, Ubuntu Dapper + Fedora7 at work
Reply With Quote
  #2  
Old 7th February 2007, 10:34 PM
webstertrivium Offline
Registered User
 
Join Date: Feb 2007
Posts: 2
Bump! I'm looking for an answer to this as well. I've got Fedora Core 5 installed on a server and was looking for the realpath binary usually found in /usr/bin/, but have been unable to find any information regarding it.

Any help is greatly appreciated!!
Reply With Quote
  #3  
Old 7th February 2007, 11:08 PM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
can you give more info of realpath pls? it does not exist by default installation in FCs boxes that I have.

have you tried

#yum search realpath
Reply With Quote
  #4  
Old 7th February 2007, 11:21 PM
webstertrivium Offline
Registered User
 
Join Date: Feb 2007
Posts: 2
Post

realpath resolves symlinks back to their real paths. I ended up just compiling this as the binary wrapper and placing it in /usr/bin:

Code:
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
    int i;

    for (i = 1; i < argc; i++) {
	char rp[PATH_MAX];

	if (!realpath(argv[i], rp)) {
	    perror(argv[i]);
	    return 1;
	} else {
	    printf("%s\n", rp);
	}
    }
    
    return 0;
}
Hopefully that helps somebody, because trying to find it was a major pain.
Reply With Quote
Reply

Tags
realpath

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find game & dont know where to find Security Settings bladescape Installation and Live Media 5 15th November 2008 01:03 AM
find cannot find files with invalid utf8 filename cyclez Using Fedora 5 23rd June 2005 08:53 PM


Current GMT-time: 01:08 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat