12-05-2011
Problem in test file operator on a ufsdump archive file mount nfs
Hi,
I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file..
i used the test operator -f -a h almost all test operator but i failed
file1=ufs_root_image.dump
[ <-f,-a,h,> /tmp/package/$file ] || echo "files doesn't exist && exit 1
the false file1 is working but the true file1 i mean if i put a file1 correctly it will not echo file doesn't exist thats the good part but it will exit in error code 1..
I dont know where the problem or any other way to accomplish my task..
thanks for any input if any..
10 More Discussions You Might Find Interesting
1. Solaris
I have a NFS share on a Linux server. When I try to mount it on a Solaris 9 server, I get the following message:
nfs mount: <nfs-server-name>: : RPC: Program not registered
I have a few other Sun boxes and I can mount the share on them without any problems. (2 Replies)
Discussion started by: soliberus
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I'm trying to create an NFS mount on server1 to server2. From the man pages I think I'm doing it right:
mount server2:/dev/vg60/lvol607 /net1
nfs mount: server1:/dev/vg60/lvol607: Permission denied
Do I need to provide login credentials to server 2 somehow? What am I missing?
... (1 Reply)
Discussion started by: FredSmith
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file.
So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies
4. Shell Programming and Scripting
I'm almost pulling out my hair trying to figure out what's wrong with this... there's no reason I can see that it shouldn't be working. It seems that the code acts as though the conditional statement is true no matter what - I've even tried removing the negation operator, but it always goes into... (5 Replies)
Discussion started by: wildbluefaerie
5 Replies
5. Red Hat
Hi Forum
I am trying to mount /NFS as nfs mountpoint on two servers ( A & B ).
After mounting the nfs filesystem, both of them behave normally for around 10 mins and after that the NFS file handle become stale and the
mountpoints dont respond. While executing df -kh, the output hang out and the... (15 Replies)
Discussion started by: rajdasuwal
15 Replies
6. Solaris
Dear All,
Struck with a peculiar problem
a) /opt/a is auto mounted to /home/a for User:a
When the User logs in to the server his home directory is getting mounted from the autofs i.e /home/a (/opt/a), Instead is has to mount the User home dir from NIS which is /home/a (from NIS).
... (2 Replies)
Discussion started by: saiprashant
2 Replies
7. Web Development
Hi,
I want to mount an NFS Shared folder on Windows XP to vxWorks.
There doesnt seem to be a problem with the sharing.
Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term:
hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies
8. UNIX for Dummies Questions & Answers
I have two servers, 82 and 70.
My exports file on 82 reads
/ ...70(rw)
on 70 I have a mountpoint called mnt_for_82
I execute on 70
mount -t nfs -o rw ...82:/ mnt_for_82
I go to server 70 and indeed can read and travers the mounted subdirectories. However, I try... (0 Replies)
Discussion started by: blaine.miller
0 Replies
9. AIX
Please can anybody help me with this weird behaviour.
There are 2 x-servers running Fedora 16 work as a cluster with DRBD, corosync & pacemaker. The cluster exports a filesystem using the following statement in /etc/exports
/drbd/home 10.49.17.0/255.255.255.0... (0 Replies)
Discussion started by: spitzie
0 Replies
10. HP-UX
Hi Folks,
Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX.
Thanks in advance,
Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies
XZDIFF(1) XZ Utils XZDIFF(1)
NAME
xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files
SYNOPSIS
xzcmp [cmp_options] file1 [file2]
xzdiff [diff_options] file1 [file2]
lzcmp [cmp_options] file1 [file2]
lzdiff [diff_options] file1 [file2]
DESCRIPTION
xzcmp and xdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), or bzip2(1). All options specified are passed
directly to cmp or diff. If only one file is specified, then the files compared are file1 (which must have a suffix of a supported com-
pression format) and file1 from which the compression format suffix has been stripped. If two files are specified, then they are uncom-
pressed if necessary and fed to cmp(1) or diff(1). The exit status from cmp or diff is preserved.
The names lzcmp and lzdiff are provided for backward compatibility with LZMA Utils.
SEE ALSO
cmp(1), diff(1), xz(1), gzip(1), bzip2(1), zdiff(1)
BUGS
Messages from the cmp(1) or diff(1) programs refer to temporary filenames instead of those specified.
Tukaani 2009-07-05 XZDIFF(1)