Hello,
I'm trying to test if a directory specified in a script parameter is available or not.
I wrote a little code to do so, but there's a problem because I receive an error message.
My code:
#Verify command parameter
if
then
echo 'Incorrect command parameter'
echo... (3 Replies)
I've been using the following code to make sure a shell script only runs under a "safe" directory.
Comments/Improvements?
#!/bin/sh
#----------------------------------------------------------------------------#
#..........................................................#... (8 Replies)
i am using solaris 5.10. i can create two different files "test" and ".test" in the same directory. now suppose i want to change the attribute of the hidden file .test to visible is it possible???
since "." is just an attribute to mark a file hidden why is unix allows creation of "file" and... (14 Replies)
Hi,
I'm writing a shell script that will create a folder if it does not exist yet. Here's the script: (this if statement is inside a while loop)
folderName="Pics"
if ! test -d folderName
then
mkdir $folderName
fi
However, after the folder Pics has been created, every time the... (3 Replies)
rm: Unable to remove directory /mnt/users/test/logs/: File exists
ls -latr
total 191208
drwxrwxrwx 6 test echo 4096 Jul 3 22:36 ..
-rwxrwxrwx 1 test echo 97692804 Jul 3 22:36 .nfsDFA4
drwxrwxr-x 2 test echo 4096 Jul 3 23:00 .
M not able to delete... (4 Replies)
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)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
LEARN ABOUT FREEBSD
autofs
AUTOFS(5) BSD File Formats Manual AUTOFS(5)NAME
autofs -- automounter filesystem
SYNOPSIS
To compile this driver into the kernel, place the following line in the kernel configuration file:
options AUTOFS
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
autofs_load="YES"
DESCRIPTION
The autofs driver is the kernel component of the automounter infrastructure. Its job is to pass mount requests to the automountd(8) daemon,
and pause the processes trying to access the automounted filesystem until the mount is completed. It is mounted by the automount(8).
OPTIONS
These options are available when mounting autofs file systems:
master_options
Mount options for all filesystems specified in the map entry.
master_prefix
Filesystem mountpoint prefix.
EXAMPLES
To unmount all mounted autofs filesystems:
umount -At autofs
To mount autofs filesystems specified in auto_master(5):
automount
SEE ALSO auto_master(5), automount(8), automountd(8), autounmountd(8)HISTORY
The autofs driver first appeared in FreeBSD 10.1.
AUTHORS
The autofs was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
BSD September 3, 2014 BSD