Unable to view contents of a directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to view contents of a directory
# 1  
Old 10-23-2001
Unable to view contents of a directory

Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20

I CD into a remote directory on one machine

$ cd /net/remote hostname

yet when I do an ll in this directory none of the contents appear. It just is empty.

when I do the same command from another machine,

$ cd /net/remote hostname

do an ll I get to see the entire contents.

I do a pwd on both machines and I am in exaxtly the same place on each.

Why can I see the contents on one machine yet on the other I cant!! please help if you can
# 2  
Old 10-23-2001
ls -all

by any chance ?
# 3  
Old 10-23-2001
Nope tried that. still wont show contents.
# 4  
Old 10-23-2001
got the right user access to list the contents ?
# 5  
Old 10-23-2001
Not sure.

I would think if I didn't it would say permission denied or something, but after an ll command it just says
total 0.
With the other machine you can cd into the directory do an ll and it shows everything thats in there.

Very confusing.

cheers for your help.
# 6  
Old 10-23-2001
First of all, there are two different boxes here. Do you really think that all systems have the same files?

But /net/remotehost is a special directory. That is where a feature called the automounter will automatically mount remote filesystem upon request.

This requires cooperation from both the local and the remote system. It could be that this relationship exists on one of your systems but not the other. Maybe the second system isn't even running the automounter.

Or maybe it is. On that system with the empty directory, try to cd to a subdirectory anyway. You may succeed if the automounter is running.
# 7  
Old 10-23-2001
No. I try to cd to a directory I know is there that wont show up on one machine but is listed on the other machine, yet it says

ksh: "directory name" not found

I just dont understand how two machines looking at one machine cannot see the same thing? All permissions are correct.

What exactly is a automounter?

cheers all for you help, any more suggestions.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

View all jar files contents in one go ?

I can view a jar file contents using the below command: $ jar -tvf ./checker-compat-qual-2.0.0.jar 0 Mon May 02 18:28:46 IST 2016 META-INF/ 184 Mon May 02 18:28:44 IST 2016 META-INF/MANIFEST.MF 0 Mon May 02 17:20:16 IST 2016 afu/ 0 Mon May 02 17:20:16 IST 2016 afu/org/ ... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. UNIX for Beginners Questions & Answers

View file contents created by dbCAmplicons as tab delimited

I have run the following command : od -c Results_May18.fixrank | head Here is the result. I wanted the results in tab delimited. Thanks $ od -c Results_May18.fixrank | head 0000000 M 0 1 6 0 1 : 1 2 9 : 0 0 0 0 0 0000020 0 0 0 0 - A T T D Y ... (2 Replies)
Discussion started by: Benard
2 Replies

3. UNIX for Advanced & Expert Users

Using vim to view the contents of a directory

When I use this command: vi /home/bob/.vimI expect to see. " ============================================================================ " Netrw Directory Listing (netrw v149) " /home/bob/.vim " Sorted by name " Sort sequence:... (4 Replies)
Discussion started by: cokedude
4 Replies

4. Red Hat

Unable to view output of Sar File for memory

Hi I am unable to view the output of sar file using below command sar -f sar07, it is showing below error. Invalid system activity file: sar07 (0x920) above file is in location /var/log/sa wheather for memory it is creating the file at different location? (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Shell Programming and Scripting

trying to view contents of an existing script

root#pwd /opt/tools root# cat check_traffic /opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic root# cat /opt/tools/utils/DIR/check_traffic gew "check_traffic -v" Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by... (5 Replies)
Discussion started by: slashbash
5 Replies

6. HP-UX

[Solved] How to view the contents of the .depot files

Hi, I have one depot file. I would want to view the contents of this file with out extracting and with out installing in a machine. Like for $rpm -qlp rpmfilename will list out all the files in a rpm. Like I would want a command to view the files from a .depot file. I tried with swlist... (2 Replies)
Discussion started by: skmdu
2 Replies

7. UNIX for Dummies Questions & Answers

Unable to view files in a particular directory under /opt

Hi Everybody, I am Unable to view files in a particular directory under /opt. But, when I reboot the server, I am able to view the files.. Its happening daily. Do u 've n e answers/suggestions. Kindly help.. :eek: (1 Reply)
Discussion started by: its.simron
1 Replies

8. Linux

Unable to view files in a particular directory under /opt

Hi Everybody, I am Unable to view files in a particular directory under /opt. But, when I reboot the server, I am able to view the files.. Its happening daily. Do u 've n e answers/suggestions. Kindly help.. :confused: (1 Reply)
Discussion started by: its.simron
1 Replies

9. Programming

view contents of shared library

Hi , i have two doubts in Hp-Ux 1) How to View objects or contents in a shared library in HP-Ux 2) Can i added a c object file to the existing shared file from a different directory . for example : I have two directories X and Y I have a.o b.o c.o object files in X directory I... (4 Replies)
Discussion started by: naren_chella
4 Replies

10. UNIX for Dummies Questions & Answers

unable to view the output through this cgi

#!/bin/env perl read(STDIN,$temp,$ENV{'CONTENT_LENGTH'}); @pairs=split(/&/,$temp); $DISPLAY1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-html/myscript2.html"; $DATAFILE1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-cgi-bin/datafile"; open (DATAFILE1, ">$DATAFILE1") || die " Error opening log file... (0 Replies)
Discussion started by: rishchand
0 Replies
Login or Register to Ask a Question