Sponsored Content
Top Forums Shell Programming and Scripting Help with decoding the 'find' command syntax Post 302680373 by methyl on Wednesday 1st of August 2012 06:30:57 PM
Old 08-01-2012
It might be an obfuscated way of waking up a dodgy NFS automount? Is the filesystem containing the files an automounted NFS partition? Is this Solaris I wonder?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question: non-recursive find syntax

Hello, I am trying to search a directory for all files matching "G*" without looking in sub-directories "success" and "error". I've searched this forum and found the following syntax, but can't make it work: find . \( ! -name success -prune -name error -prune \) -type f -name "G*" Have... (6 Replies)
Discussion started by: alexkav
6 Replies

2. Shell Programming and Scripting

Can I know find syntax to find given date files

Hi All, Can i use find command to know given date files? If yes, then please let me know the syntax for the same. Thanks in advance for your postive responses Regards, Bachegowda (3 Replies)
Discussion started by: bache_gowda
3 Replies

3. Shell Programming and Scripting

syntax error not able to find why

Hi Guru's here is part of my shell script where the error is coming. function daemon_start { daemon="" clear :<<COMMENT Meenakshi 25-Jun Code Cleanup IA - code comented - Start echo " `date` ... (1 Reply)
Discussion started by: namishtiwari
1 Replies

4. UNIX for Dummies Questions & Answers

find mtime syntax

Hi guys, I am looking for a way of moving all files out of a directory with a time stamp greater then the one I specify. Can anyone suggest a way of doing so? For example, move all files out of dir1 which were created after 17:00 into dir2. Thanks :) (1 Reply)
Discussion started by: JayC89
1 Replies

5. Shell Programming and Scripting

find syntax

i'm trying to find out how to find in my directory and subdirectories a certain file. once i find that file, i need to select that folder and copy it the location or output it to a new text file. i know how to find the file by using find . -name \*.pl | sort -n but idk how to select... (9 Replies)
Discussion started by: kpddong
9 Replies

6. UNIX for Advanced & Expert Users

Help with complex find syntax

I need to modify the find command below to exclude the output of the directory /usr/UDPM/PerfMgmt/shmlck find / \( -fstype ctfs -o -fstype mntfs -o -fstype objfs -o -fstype proc -o ! local \) -prune -o -type f -perm -0002 -print 2>/dev/null I have tried many iterations and placement of... (2 Replies)
Discussion started by: interesting?
2 Replies

7. UNIX for Dummies Questions & Answers

Find/Grep Syntax Question

Hi Folks, I am trying to dig through about 100 directories that have 1 or 2 .jpg images stored in each. I want to copy the .jpg to another file in the root directory. Really my ultimate goal is not to have to dig down into each directory to copy the images individually. I thought I could use a... (2 Replies)
Discussion started by: alpinescott
2 Replies

8. UNIX for Dummies Questions & Answers

uanble to find while and for loop syntax in unix

Hi friends, I am unable to find for loop or while loop syntax on ksh shell,same syntax is working in other shell ,please suggest a way through. error :syntax error at line 2: `(' unexpected syntax used : for ((i=1;i<=$v1;i++)) thanks, Jcpratap (9 Replies)
Discussion started by: Jcpratap
9 Replies

9. Shell Programming and Scripting

Using find and mv syntax

I have the following script working currently. The only thing I want to add is to somehow tell the script to find the files using the find and maxdepth variables and then move the files to a corresponding file structure. example: file test.txt exists in the /data/user1/upload directory The... (4 Replies)
Discussion started by: jwt66
4 Replies

10. UNIX for Beginners Questions & Answers

FIND and GREP syntax

I have a question to this command find . -type f -name ".*txt" -exec grep "text" {}\. The find command will locate a file name with the extension of txt once per round and find the word "text" in the content of the file or the find command will locate all the file names with the extension of... (2 Replies)
Discussion started by: TestKing
2 Replies
autofsd(8)						      System Manager's Manual							autofsd(8)

NAME
autofsd, autofs - Automatically and transparently mounts and unmounts NFS file systems SYNOPSIS
/usr/sbin/autofsd [-dv] [-D name=value] OPTIONS
Enables debugging. When debugging is enabled, the daemon does not disassociate itself from the current tty. Messages that trace autofsd activity are written to standard output. Logs verbose output. Defines an autofsd environment variable by assigning value to the variable. DESCRIPTION
The autofsd daemon automatically and transparently mounts and unmounts NFS file systems on an as-needed basis. Like the automount daemon, it provides another alternative to using the /etc/fstab file for mounting NFS file systems on client machines. However, AutoFS is more efficient than the automount daemon because it requires less communication between the kernel and the user space daemon. The autofsd daemon also provides higher availability than the automount daemon. Although autofsd must be running for mounts or unmounts to be performed, if it is killed or becomes unavailable, exisiting auto-mounted NFS file systems continue to be available. The autofsd daemon can be started from the command line or from the /sbin/rc3.d/nfs script, which reads the /etc/rc.config.common file. Once started, it remains dormant until a user attempts to access a directory (or any file or directory in the directory hierarchy) that is associated with an AutoFS map. The daemon then consults the appropriate map and mounts the NFS file system as specified. AutoFS maps indicate where to find the file system to be mounted and the mount options to use. The names of the maps are passed to the aut- ofsd daemon through the autofsmount command. For more information about AutoFS maps and the autofsmount command, see autofsmount(8) and the Network Administration guide. Also, see sys_attrs_autofs(5) for information on tuning AutoFS. Note The autofsmount program reads AutoFS maps at startup. If you make any changes to the maps after startup, you must execute the autofsmount command again to incorporate the changes. By default, AutoFS uses UDP transport. If the tcp option is specified in a map, AutoFS attempts to use TCP. If TCP is not available, Aut- oFS then reverts to UDP. RESTRICTIONS
There is no support in the autofsd daemon that is analogous to the SIGTERM support in the automount command. If a file system is locally served, the autofsd daemon creates a symbolic link on the system instead of NFS mounting the directory. If locally serving the directory would result in a circular link, the daemon selects an external server (if available). SEE ALSO
Commands: autofsmount(8), automount(8), mount(8) Others: sys_attrs_autofs(5) Network Administration autofsd(8)
All times are GMT -4. The time now is 01:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy