- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: directory link question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2005 10:12 AM
02-25-2005 10:12 AM
directory link question
I have what I think is a unique circumstance. Long story but an internal website using Oracle has placed a / after a directory location. This has caused the directory to show up as follows:
/
** Note the // before "cabo"
Is there a way to do an ln -s or some other pointer to point it to the correct location which should look like:
/
** Note the / before "cabo".
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2005 01:54 PM
02-25-2005 01:54 PM
Re: directory link question
/
and do an
ls -l | grep
that
have you tried
mv
??
of course you application is likely to fail to run because you changed the path.
or you could just cd to
cd /
ls -n
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 07:17 AM
02-26-2005 07:17 AM
Re: directory link question
I think there must be a directory containing (a) control character(s) below the second
cd /
ls | od -cx
If there is just one entry in this directory, then you can do a
ln -s */cabo cabo
else: Use a print/printf statement to put the name in a variable
var=$(printf '\0xx....')
You can test via ls "$var"...
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 08:15 AM
02-26-2005 08:15 AM
Re: directory link question
cd ////var////tmp
ll /////etc///issue
And all is well. It is essentially a cosmetic feature. Does the reference work correctly in the web page database?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:16 AM
03-02-2005 08:16 AM
Re: directory link question
Thank you for your time and responses. I think I should have been a bit more clear in my description.
Our Oracle application has a piece of poorly written code. When it should access a path with /u01/test/
I should note that we fixed this problem by modifying the code. At the time I originally sent this, we were seeking a quick and temporary fix. That was the reason for my question.
Now, I'm still curious if there is a way. If Oracle is looking for the path of /u01//test/
Something along the lines of:
ln -s /u01/test/
I hope that makes sense.
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 06:06 AM
03-03-2005 06:06 AM
Re: directory link question
ls /u01/test/file
ls /u01/test///file
ls ///u01///test//file
and get exactly the same listing. Does the bad reference actually fail to resolve?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 08:24 AM
03-03-2005 08:24 AM
Re: directory link question
Yes the link actually fails to resolve. Somehow Oracle placed the extra "/" in there. As you pointed out, the OS doesn't care if I reference the fail by //file//. However, I believe this problem is created when the code attempts to access the path containing // in a string to call a style sheet.
Thanks again,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 01:34 PM
03-03-2005 01:34 PM
Re: directory link question
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:23 AM
03-07-2005 02:23 AM
Re: directory link question
I'll check with the web analyst and see if this would do the trick. I think it may. I'll get back to you as well as assign points. Thanks again,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 07:11 AM
03-14-2005 07:11 AM
Re: directory link question
I thank you again for your contributions both on this question as well as the forum in general. This problem is within Oracle and the code has been repaired. For now, that's simply going to have to be enough. I'm closing this but should I have available time in the near future, I may again solicit some advice.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 07:12 AM
03-14-2005 07:12 AM
Re: directory link question
Dave