Sponsored Content
Top Forums Shell Programming and Scripting test a script about mount points Post 302259393 by chebarbudo on Tuesday 18th of November 2008 02:40:34 AM
Old 11-18-2008
Thanks otheus!
This will be terribly helpfull. Actually I still need this function to use the mirror function in lftp. I need to exclude directories that are mount points like this:
Code:
path=/home/
lftp x.x.x.x -u user,password -e "mirror -R $(qmtpt "$path" | awk '{ ORS = " " } { print "-x", $0 }') $path $path; quit"

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mount points

sometimes in Solaris 8 when I go to mount filesystems using either the mount command or by editing the /etc/vfstab, i get a nice little error message saying the the number of allowable mount points has been exceeded. I have read man pages until I am blue in the face and no where can I find what the... (3 Replies)
Discussion started by: manderson19
3 Replies

2. UNIX for Dummies Questions & Answers

Mount Points at reboot

How do I make a mount point reconnect at boot without editing /etc/fstab? Is there an option (or switch) to make this persistent when issuing the mount command from a client? (1 Reply)
Discussion started by: AIXdumb455
1 Replies

3. UNIX for Dummies Questions & Answers

NFS Mount Points

Hi Solaris 10 On server A, there is a directory called data with 10 files. This data directory has a further 3 subdirectories, gl, pay, contract (for example) On server B, I want to see the server A data directory commands used: on server A, share -F nfs -o ro -d "<description">... (1 Reply)
Discussion started by: davidra
1 Replies

4. HP-UX

Cannot unmount mount points??

When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted. How can I find out what process(es) is/are latching on the these mount points? Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies

5. UNIX for Dummies Questions & Answers

mount points are already mounted

Hi, I have some issue with the mounting/unmounting on my sun solaris box. Actually their is one script that mount the file system take the backup of databases and unmount the file system.Last week this script failed to mount the file system with the below error message: + echo fs_check.sh:... (1 Reply)
Discussion started by: biju.mp
1 Replies

6. UNIX for Advanced & Expert Users

mount points

hi, I believe a mount point does not have to be a physical disk, but rather a logical one? Is this correct? if so, how can I find out if my mount points are on different physical disks? thanks (9 Replies)
Discussion started by: JamesByars
9 Replies

7. Shell Programming and Scripting

Shell Script to see the mount points.

Hi all, First of all I dont even know the ABC of scripting .. But now I want a Script to see the mount points of the file systems Can any body help plsssssssss :o (1 Reply)
Discussion started by: priky
1 Replies

8. Shell Programming and Scripting

script to monitor mount points on linux box

Hi, the following shell script is not working on linux box sugeestions appreciated. FILE1=/tmp/check1.txt FILE2=/tmp/check2.txt df -k | awk '{if (NR != 1) print $5 $6}' > ${FILE1} awk -F"%" '{if ($1 > 90) print "Warning: Filesystem " $2 " over 90% threshold (" $1 "%)"}' ${FILE1} >... (7 Replies)
Discussion started by: prakash.gr
7 Replies

9. Red Hat

Mount Points? How?

Hi folks, I have been asked to performed the following: Add the following new moint points systemA:/avp and SystemB:/usr/sap/trans to be the new linux server ZZZ How can I add those mount points and how those mount points can become another linuz server?:wall::wall::wall: (2 Replies)
Discussion started by: 300zxmuro
2 Replies

10. Shell Programming and Scripting

Linux Mount Points usage check with shell script

Hi Everyone, Just in need of your help again, I have managed to get a script to check the linux disk usage stuff. But wanted to tweak it little more to get the desired output. Requirement: Now its querying only one mount point, As its not saving in array instead calling it as variables. So... (1 Reply)
Discussion started by: thiyagoo
1 Replies
statfs(3)						     Library Functions Manual							 statfs(3)

Name
       statfs, - get file system statistics

Syntax
       #include <sys/types.h>
       #include <sys/param.h>
       #include <sys/mount.h>

       statfs(path, buffer)
       char *path;
       struct fs_data *buffer;

Description
       The  library  routine returns up-to-date information about a mounted file system.  The path is the path name of any file within the mounted
       file system.  The buffer is a pointer to an structure as defined in

Return Values
       Upon successful completion, a value of is returned.  If the file system is not mounted, is returned.  Otherwise, is returned and the global
       variable errno is set to indicate the error.

Diagnostics
       The library routine fails if one or more of the following are true:

       [ENOTDIR]      A component of the path prefix of path is not a directory.

       [EINVAL]       path contains a character with the high-order bit set.

       [ENAMETOOLONG] The length of a component of path exceeds 255 characters, or the length of path exceeds 1023 characters.

       [ENOENT]       The file referred to by path does not exist.

       [EACCES]       Search permission is denied for a component of the path prefix of path.

       [ELOOP]	      Too many symbolic links were encountered in translating path.

       [EFAULT]       buffer or path points to an invalid address.

       [EIO]	      An I/O error occurred while reading from the file system.

See Also
       getmnt(2), getmountent(3)

																	 statfs(3)
All times are GMT -4. The time now is 02:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy