Sponsored Content
Top Forums Shell Programming and Scripting Peer Review File/Folder Script Post 302684365 by Corona688 on Thursday 9th of August 2012 01:17:52 PM
Old 08-09-2012
Quote:
Originally Posted by agama
Another thing that you might need to consider is if any of the files being installed are binaries you will probably have to deal with "text file busy" conditions.
UNIX not being a system where mandatory locking's been very popular, I haven't seen this message and don't know what circumstances it'd appear. Can you tell me more?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Review the Shell Script

Hi, I want to copy all the log file except current date log from one server to another server. Log File will be like this LOGNIG_08_11_2008*.log For this cd /test/log date -d '1 day ago' "+%d_%m_%Y" -->This command gives previous day scp LOGSNIG_date -d '1 day ago' "+%d_%m_%Y"... (2 Replies)
Discussion started by: srinivasvandana
2 Replies

2. Shell Programming and Scripting

Please, review script.

Hi guys, I 've been brewing this shellscript, but I can't test it until next tuesday. In the meantime I am too curious wether it will work or not, so I'd like to hear your comments. Background: I want to watch the user quota for mailboxes in various email-domains on a IMAP-server. I have... (1 Reply)
Discussion started by: algernonz
1 Replies

3. Solaris

peer-to-peer connection on solaris and windows

hi everyone. As a solaris/unix beginner, I am trying a peer-to-peer connection with my Sun and Windows. Here is my setup: -Windows XP -Sun System (Netra T1) which is connected to the console of the WinXP machine. -Windows XP has wireless connection which enables me to access internet ... (3 Replies)
Discussion started by: graboid888
3 Replies

4. Shell Programming and Scripting

a shell script for review.

I have written a bit of shell that lets our company check all our SSL certs. the aim is to have a list of servers and run this check from cron once a week. Our managers have decided that we will not run BASH, so it has been written in /bin/sh and only needs openssl, no perl, no bash, no extra... (8 Replies)
Discussion started by: robsonde
8 Replies

5. Shell Programming and Scripting

Please review script for search in all files

I have written a little script to scan users home directories for certain commands located inside a file. The script is setup to include a small help section and allows for passing a username argument to override scanning of all users home directories. A lot of searching and trial and error has... (7 Replies)
Discussion started by: bkeep
7 Replies

6. IP Networking

Firewall stopping Peer to Peer File sharing

I am looking for advice on a router. I am new to Linux and am trying to use Limewire and Ktorent and can make no connection. Limewire indicates I have a firewall. I have a Linksys router WRK54G and my guess is that is the problem. I have spent hours upon hours trying to get it to work using info... (0 Replies)
Discussion started by: Paul K
0 Replies

7. IP Networking

Problem with Static route through peer to peer connection

Hi, I am trying to add a static route in one of 3 server (S3) so that I can access the main application server (S1). But problem is, the server (S3) where I am trying to add static route is connected with another server (S2) which is in same private network of application server (S1). I have... (9 Replies)
Discussion started by: ImranBD
9 Replies

8. Shell Programming and Scripting

File to Folder script

I am trying to write a linux shell script that will take every file in a folder /home/user/desktop/fileme and place it in a folder with the same name as the folder before /home/user/desktop/fileme/stuff.txt /home/user/desktop/fileme/other.avi /home/user/desktop/fileme/last.jpg after... (2 Replies)
Discussion started by: FustFust
2 Replies

9. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
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)
All times are GMT -4. The time now is 02:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy