07-20-2007
Thambi,
I just checked my system and 'fuser' here is located at '/usr/sbin/',
which is not listed in your path.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'ld like to enable file name completion in ksh88 on AIX 5.2. My terminal is set to xterm. I've set the shell editor to emacs and ampped the arrow keys. Is there a way to map the tab key to a command like ESC= or any other file name completion command in emacvs that I may be not aware of since I'm... (1 Reply)
Discussion started by: rein
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a program that checks a directory for new files. A file may be placed in the directory only via FTP from another system.
The files are long, the FTP can take several minutes to complete.
my program sences that a file has arrived but can't tell if the FTP process that sent it is... (10 Replies)
Discussion started by: GMMike
10 Replies
3. Shell Programming and Scripting
Is there a way to link a script in my ~/bin with file extension priority for tab completion?
for example, if the script I have could only look at .tex files, and I have 6 files in the same directory with the same name, but different extensions:
index.tex index.dvi index.toc ... etc...
it... (0 Replies)
Discussion started by: pyramation
0 Replies
4. Shell Programming and Scripting
Hi experts,
I have a requirement wherein a user is uploading a file to the Landing directory on one of our Linux servers. A cron job is scheduled to run after every 5 minutes which will pick up the files from the source (Landing) dir and copy to the target dir, and once successfully copied to... (4 Replies)
Discussion started by: adi_2_chaos
4 Replies
5. Shell Programming and Scripting
Hi All,
I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key.
While pressing ESC key , '^[' is getting printed .
TAB is printing doin nothin but jus printing tab.
What should I do to get auto completion of... (3 Replies)
Discussion started by: Sooraj_Linux
3 Replies
6. Shell Programming and Scripting
Hi All,
I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key.
While pressing ESC key , '^[' is getting printed .
TAB is printing doin nothin but jus printing tab.
What should I do to get auto completion of... (2 Replies)
Discussion started by: Sooraj_Linux
2 Replies
7. Shell Programming and Scripting
Hi All,
I have two scripts - ScriptA and ScriptB
ScriptA has logic to invoke ScriptB :
- with some parameter
- or without any parameter
ScriptB can also be invoked by the user from the command line.
Is there anyway to ensure that when I execute ScriptB from the command line, it does... (3 Replies)
Discussion started by: chaitanya.gvc
3 Replies
8. Shell Programming and Scripting
Hi,
A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file.
I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming?
Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies
9. Shell Programming and Scripting
Hi,
I have a wierd requirement where i need to check for a file transfered to my Server and once it is completed i need to start processing my jobs.
My server is AIX 6.0 and i want to know is there some way in unix i can keep on checking the file and once it is completed successfully i can... (5 Replies)
Discussion started by: prasson_ibm
5 Replies
mountall(1M) System Administration Commands mountall(1M)
NAME
mountall, umountall - mount, unmount multiple file systems
SYNOPSIS
mountall [-F FSType] [-l | -r] [file_system_table]
umountall [-k] [-s] [-F FSType] [-l | -r] [-n]
umountall [-k] [-s] [-h host] [-n]
DESCRIPTION
mountall is used to mount file systems specified in a file system table. The file system table must be in vfstab(4) format. If no file_sys-
tem_table is specified, /etc/vfstab is used. If - is specified as file_system_table, mountall reads the file system table from the standard
input. mountall mounts only those file systems with the mount at boot field set to yes in the file_system_table.
For each file system in the file system table, the following logic is executed: if there exists a file/usr/lib/fs/FSType/fsckall, where
FSType is the type of the file system, save that file system in a list to be passed later, and all at once, as arguments to the
/usr/lib/fs/FSType/fsckall script. The /usr/lib/fs/FSType/fsckall script checks all of the file systems in its argument list to determine
whether they can be safely mounted. If no /usr/lib/fs/FSType/fsckall script exists for the FSType of the file system, the file system is
individually checked using fsck(1M). If the file system does not appear mountable, it is fixed using fsck before the mount is attempted.
File systems with a - entry in the fsckdev field are mounted without first being checked.
umountall causes all mounted file systems except root, /usr, /var, /var/adm, /var/run, /proc, and /dev/fd to be unmounted. If the FSType is
specified, mountall and umountall limit their actions to the FSType specified. There is no guarantee that umountall unmounts busy file sys-
tems, even if the -k option is specified.
OPTIONS
The following options are supported:
-F Specify the FSType of the file system to be mounted or unmounted.
-h host Unmount all file systems listed in /etc/mnttab that are remote-mounted from host.
-k Use the fuser -k mount-point command. See the fuser(1M) for details. The -k option sends the SIGKILL signal to each
process using the file. As this option spawns kills for each process, the kill messages might not show up immediately.
There is no guarantee that umountall unmounts busy file systems, even if the -k option is specified.
-l Limit the action to local file systems.
-n List the actions that would be performed for the specified options, but do not actually execute these actions. Repeating
the command without the -n option executes the listed actions, assuming that the /etc/mnttab file has not changed in the
interval prior to repeating the command.
-r Limit the action to remote file system types.
-s Do not perform the umount operation in parallel.
FILES
/etc/mnttab Mounted file system table
/etc/vfstab Table of file system defaults
/usr/lib/fs/FSType/fsckall Script called by mountall to perform the file system check of all file systems of type FSType
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
fsck(1M), fuser(1M), mount(1M), mnttab(4), vfstab(4), attributes(5)
DIAGNOSTICS
No messages are printed if the file systems are mountable and clean.
Error and warning messages come from fsck(1M) and mount(1M).
SunOS 5.10 28 Oct 2002 mountall(1M)