Hi Folks!
I am a MacUser and am trying to learn Unix for the last few months.
I will explain in detail what I am trying to do, and apreciate you help if you can teach me even if it is a single comand line inside the script.
I own a small company, where I manufacture special gypsums and... (5 Replies)
Hi All,
I want to read username and lastupdate only from /etc/security/passwd and write the same data to another file:
The data in /etc/security/passwd will be in this form for example:
For more details : http://www.unet.univie.ac.at/aix/files/aixfiles/passwd_security.htm#A1219924
smith:... (0 Replies)
Actually i am working with two diffrent files having same structure
each file contain Ten diffrent column and i want to write a script
which will compare the colummns of first file with the column of second file and diiference will be send to the first column of third file .
similarly for... (5 Replies)
UNIX shell script (Bourne shell syntax) called
admin_script. This script is described below as a usage summary:
admin_script
Note: if no options are specified, a menu is displayed which allows
users to perform one of the following tasks and then exit. If
incorrect options are provided,... (1 Reply)
Hello,
I have done some BASIC shell scripting/PERL scripting before so I am familiar with the languages. I am not really sure which one would lend itself better to the application I have to write.
I am required to scan the message logs for possible break in attempts. If I use shell scripting... (2 Replies)
Hi All,
I have written the following script. I have just repeated some commands, and I am sure there is a more better way to do it. I hope I one of gurus here will help me make it in a better shape. Here is the script:
#! /bin/sh
sed -i -e "s/test2.xxx/test3.xxx/" -e "s/output2/output3/"... (2 Replies)
I am adapting an Open Step ping server script to Ubuntu 8.10 and one section of my script isn't working
# if there are servers that just went down or came back up, notify
# with high importance
if ; then
echo notifying of servers that are up again or just now down
notify high
# if there... (2 Replies)
If I need delete some disk,
for i in hdisk1 hdisk2 hdisk3 hdisk4
do
rmdev -dl $i
done
if I have more than 100 hdisks, how to write a script like that to delete them? (6 Replies)
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Hi All,
I have written the follwing script to take the backup of the file every day
along with the date.
DATE=`date +%Y%m%d`
export DATE
cp var/hr/hr333m.txt cp var/hr/payments/hr333m_$DATE.txt
The file name as follows after taking the backup.
hr333m_20110630.txt
Could you... (3 Replies)
Discussion started by: ajaykumarkona
3 Replies
LEARN ABOUT NETBSD
fssconfig
FSSCONFIG(8) BSD System Manager's Manual FSSCONFIG(8)NAME
fssconfig -- configure file system snapshot devices
SYNOPSIS
fssconfig [-cxv] device path backup [cluster [size]]
fssconfig -u [-v] device
fssconfig -l [-v] [device]
DESCRIPTION
The fssconfig command configures file system snapshot pseudo disk devices. It will associate the file system snapshot disk device with a
snapshot of path allowing the latter to be accessed as though it were a disk.
If backup resides on the snapshotted file system a persistent snapshot will be created. This snapshot is active until backup is unlinked.
This snapshot mode is only supported for ffs files systems.
Otherwise data written through the path will be saved in backup. If backup is a regular file, it will be created with length size. Default
size is the size of path. Data is saved to backup in units of cluster bytes.
Options indicate an action to be performed:
-c Configures the device. If successful, references to device will access the contents of path at the time the snapshot was taken. If
backup is a directory, a temporary file will be created in this directory. This file will be unlinked on exit.
-l List the snapshot devices and indicate which ones are in use. If a specific device is given, then only that will be described.
-u Unconfigures the device.
-v Be more verbose listing the snapshot devices.
-x Unlink backup after the device is configured.
If no action option is given, -c is assumed.
FILES
/dev/rfss?
/dev/fss?
EXAMPLES
fssconfig fss0 /usr /tmp/back
Configures the snapshot device fss0 for a snapshot of the /usr file system. Data written through /usr will be backed up in /tmp/back.
fssconfig fss1 / /dev/rsd0e 8192
Configures the snapshot device fss1 for a snapshot of the / file system. Data written through / will be backed up in /dev/rsd0e. The backup
will take place in units of 8192 bytes.
fssconfig -u fss0
Unconfigures the fss0 device.
SEE ALSO opendisk(3), fss(4), mount(8), umount(8)HISTORY
The fssconfig command appeared in NetBSD 2.0.
BSD June 11, 2012 BSD