09-15-2011
Find all locked files
How to can find all locked files and release the locks in Unix?
We have an issue were an ftp job lands files under /home/loginid at 5:30 pm and at 6 pm we run a get file on the mvs mainframe machine ftp the file from the server to the mainframe. We get an error file is in use eventhu it is not !! However if we wait until next day morning the it works fine !!! Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have some locked files ( locked via the Mac finder)
I have tired rm -R and rm -rdf but it doesnt delete the locked files
just says "override rw------- etc?"
type "yes" and says "operation not permitted"
is there some way to do this (or unlock the files)
Thanks (1 Reply)
Discussion started by: Aussie John
1 Replies
2. Shell Programming and Scripting
I need to find files that have the ending of .out and that are older than 20 days. However, I cannot use find as I do not want to search in the directories that are underneath the directory that I am searching in.
How can this be done?? Find returns files that I do not want. (2 Replies)
Discussion started by: halo98
2 Replies
3. Shell Programming and Scripting
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies
4. UNIX for Dummies Questions & Answers
using OS X and the Terminal, I'd like to find all locked files in a specified directory, unlock them, and print a list of those files that were unlocked
how can I do this?
I'm familiar with chflags nouchg for unlocking one file but not familiar with unix enough to do what I'd like.
Thanks! (0 Replies)
Discussion started by: alternapop
0 Replies
5. UNIX for Dummies Questions & Answers
Here's the story:
I had an LaCie Internet Space (1TB)... Recently the network (or software)
functions of the device just died... I tried to access it via different routers,
checking UTP, tried everything possible to rule out physical damage to
components.
Then i got the disk out of its... (2 Replies)
Discussion started by: SentinelX
2 Replies
6. UNIX for Advanced & Expert Users
Hi all,
i have no of processors .in that some processors locked. how to find the particular locked processors into list of all the processors.
i hav no of processors like
ex:
processors
1021
1022
1023
1024
1025 ---it is locked
1026
--
-
-
-
-
--
2334334
so i don't know 1025 is... (1 Reply)
Discussion started by: venkatreddy
1 Replies
7. Shell Programming and Scripting
what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
this is my first and probably not my last question around here. I do hope you can help or at least point me in the right direction.
My question is as follows, I need to find files and possible folders which are not owner = AAA group = BBB with a said location and all sub folders ... (7 Replies)
Discussion started by: kilobyter
7 Replies
9. Proxy Server
Details Samba server:
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Kernel version: SunOS 5.10 Generic_142909-17
Samba version:
Samba version 3.5.6
Smb.conf file section Global:
# smb.conf for Airbus Industries fuer... (0 Replies)
Discussion started by: Jean-Guillaume
0 Replies
10. Shell Programming and Scripting
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies
LEARN ABOUT ULTRIX
mtstailor
mtstailor(5mh) mtstailor(5mh)
Name
mtstailor - system customization for MH message system
Description
The file defines run-time options for those MH programs which interact (in some form) with the message transport system. At present, these
(user) programs are: and
The options available along with default values and a description of their meanings are listed below:
The host name that MH considers local.
If not set, depending on the version of ULTRIX you are running, MH will query the system for this value (for example: <whoami.h>,
gethostname). This has no equivalent in the MH configuration file.
The name of the local host in the UUCP "domain".
If not set, depending on the version of ULTRIX you are running, MH will query the system for this value. This has no equivalent
in the MH configuration file.
A host or list of hosts running
can be specified. When an MH program is run, it uses this entry to search for a central to connect to. This is particularly
useful for workstation users who may not have running on their workstation.
The directory where maildrops are kept.
If this is empty, the user's home directory is used. This overrides the mail field in the MH configuration file.
The name of the maildrop file in the directory where maildrops are kept.
If this is empty, the user's login name is used. This overrides the mail field in the MH configuration file.
The beginning-of-message delimiter for maildrops.
The end-of-message delimiter for maildrops.
If non-zero, then support for MMailids in
is enabled. Basically, the field in the password file is of the form
My Full Name <mailid>
The MH internal routines that deal with user and full names will return mailid and My Full Name respectively.
The locking discipline to perform.
A value of 0 means to use if available, standard locking otherwise. A value of 1 means to use locking always (the name of the
lock is based on the file name). A value of 2 means to use locking always (the name of the lock is based on device/inode pairs).
The name of the directory for making locks.
If your system does not have the syscall, then this directory is used when creating locks. If the value is empty, then the
directory of the file to be locked is used.
The pathname to the
program.
The name of the system-wide default
file. See for the details.
The highest user-id which should NOT receive mail addressed to
everyone.
If set, then each user-id greater than everyone
that has a login shell equivalent to the given value (for example, indicates that mail for everyone should not be sent to them.
This is useful for handling admin, dummy, and guest logins.
A few words on locking: MH has a flexible locking system for making locks on files. There are two variables you should be aware of: lock-
style and lockldir. The first controls the method of locking: the second says where lock files should be created.
The lockstyle variable can take on three values: 0, 1, 2. A value of 0 means use the syscall if you are running on 4.2BSD, otherwise use a
locking style of 1. A value of 1 or 2 specifies that a file should be created whose existence means locked and whose non-existence means
unlocked. A value of 1 specified that the lockname is constructed by appending to the name of the file being locked.
A value of 2 says to construct the lockname by looking at the device and inode numbers of the file being locked. If the lockldir variable
is not specified, lock files will be created in the directory where the file being locked resides. Otherwise, lock files will be created
in the directory specified by lockldir. Prior to installing MH, you should see how locking is done at your site, and set the appropriate
values.
Files
System customization file.
System password file.
See Also
flock(2), mh_profile(5mh)
mtstailor(5mh)