a file is created on a daily basis in the name xyz_pqr_20071207.dat.i want to send the file as an attachment if the file contains more than 50 records.how can i write a script such that it will transmit the file after the file is created.i want to sed the file to say asdf@xyz.com.
please help me... (2 Replies)
Hi,
I have a script which updates a repository which is run manually. When this happens either no or new files will be added to a specific folder. If there are new files that have been added, an email needs to be sent. How can i check a folder for any new files after the update repos script has... (0 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do? (4 Replies)
Hi Friends,
Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file.
text file contains the no. of records like:
giridhar
224285
847333
giridhar276@gmail.com
ramana
84849
33884
venkata.ramana@gmail.com... (6 Replies)
Hi All,
My requirement is as follows:
A file (say abc) will be having list of the .txt file names. I need to read this abc file line by line and rename the .txt file names inside it and move them to other folder/path.
Eg:
abc
-------
file1.txt
file2.txt
file3.txt
Output (should... (1 Reply)
Hello,
Trying to get a bash for files received on daily basis and want to copy those files to different directory and send an email notification if file exists then send the file counts else Alert with no file received.
FileName format: DailyTransaction_2015-03-09_ 200.csv before 200 their is... (1 Reply)
HI All,
please help , i got same case . i want copy folder and directory create yesterday.
for sample below :
drwxr-xr-x 4 apps apps 33 Nov 23 04:00 xxxxxx@gmai.com
drwxr-xr-x 4 apps apps 33 Nov 23 04:00 yyyyyyy@gmail.com
drwxr-xr-x 4 apps apps 33 Nov 24 04:00... (2 Replies)
Here is the shell script which need to trigger a stored procedure and when the record count is 0 then it should capture in the log that 0 duplicate records are found and if it's more than 0 then log with no of records. Also if there is any sqlerror then it should write the same in the log file and... (17 Replies)
Discussion started by: senmng
17 Replies
LEARN ABOUT OSF1
clonefset
clonefset(8) System Manager's Manual clonefset(8)NAME
clonefset - Creates a read-only copy of an AdvFS fileset
SYNOPSIS
/usr/sbin/clonefset domain fileset clonename
OPERANDS
Specifies the name of an existing AdvFS file domain. Specifies the name of the original fileset that the clonefset utility will clone.
Specifies the name of the read-only fileset created by the clonefset utility.
DESCRIPTION
The clonefset utility enables you to perform online backups of active files by making a read-only copy (clone) of an active fileset. Once
you create and mount a clone fileset, you can back up the clone using the vdump command or other supported backup utility (the dump command
is not supported by AdvFS). Note that the clonefset utility only clones AdvFS filesets; it does not clone UFS file systems.
A clone fileset is a read-only snapshot of fileset data structures (metadata). When you clone a fileset, the utility copies only the
structure of the original fileset, not its data. When you modify files in the original fileset, the file system copies the original pages
to the clone fileset. In this way, the clone fileset contents remain the same as when you first created it.
You can create new versions of a clone fileset, but you can maintain only one clone per fileset at a time. You cannot rename a clone file-
set, but there is a workaround. You can remove an existing clone fileset (and all its files) by using the rmfset command, then create a new
one with the new name.
RESTRICTIONS
Each fileset within a domain must have a unique name of up to 31 characters. All whitespace characters (tab, new line, space, and so
forth) and the / # : * ? characters are invalid for fileset names.
Do not create a clone fileset if the available disk space for the file domain is less than 5 percent of the total. When a file domain runs
out of disk space, the file system loses its ability to maintain the consistency of files within clone filesets. When the file system can
no longer maintain consistency, it displays warning messages similar to the following on the user's terminal and to the console: WARNING:
advfs cannot copy-on-write data to a clone file. WARNING: encountered the following error: ENO_MORE_BLKS (-1040) WARNING: do not continue
using the clone fileset. WARNING: original file set: name=mnt, id=2c06a73f.00027192.00000001.8001 WARNING: clone file set: name=clone,
id=2c06a73f.00027192.00000002.8002 WARNING: file id = 0000000a.8002
This message also appears in the /var/adm/syslog.dated/latest_boot_date/kern.log file.
EXAMPLES
The following example creates a read-only copy of the credit_fs fileset that resides in the accounts_dmn file domain. The clone fileset
name in this example is credit_clone1. This example also performs an online backup and removes the clone fileset after the backup is com-
plete: # mkdir /mnt/credit_clone1 # clonefset accounts_dmn credit_fs credit_clone1 # mount -t advfs account_dmn#credit_clone1
/mnt/credit_clone1 # vdump /mnt/credit_clone1 # umount /mnt/credit_clone1 # rmfset account_dmn credit_clone1
SEE ALSO
Commands: tar(1), showfdmn(8), vdump(8), vrestore(8)
Functions: advfs_clonefset(3)
File Formats: advfs(4)clonefset(8)