Can somebody give me the explanation for this command line:
ps>newfile<infile wc -l
?
I am totally confused with the order of its execution.. :confused:
Thanx,
Saneesh Joseph. (3 Replies)
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
If I have a flat file date.txt separate by a tab
date1 date2 count
20060226 20060225 2
20060227 20060226 2
20060228 20060227 5
20060314 20060228 2
20060315 20060314 1
If $3 (count) is 5 then execute the script testit.ksh with... (13 Replies)
I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example:
mycmd=''
if ...; then
$mycmd='sudo '
fi
$mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile
res=`$mycmd`
(I'm also not sure of the best way to execute the command from the... (1 Reply)
How to make it works this way?
echo dir1\/*.txt ; echo dir1\/*.html | xargs wc -l
dir1/*.txt
wc: dir1/*.html: No such file or directory
what i'm trying to do it to "wc dir1/*.txt" and "wc dir1/*.html" (2 Replies)
Hi All,
I need this to execute and not just print on Red Hat ent 4 bash shell.
cat /etc/passwd|grep db2 | awk -F":" '{print "cat /etc/group | grep ",$4}'
Output:
cat /etc/group | grep 1000 (I don't want this to print but execute)
Thanks for any comment you may add. (2 Replies)
HI,
I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file names with comma separated.
Desired output: file1,file2,file3 so on....
Regards
Akshay... (2 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT OSF1
volreconfig
volencap(8) System Manager's Manual volencap(8)NAME
volencap, volreconfig - Encapsulates disks, partitions, or AdvFS domains
SYNOPSIS
/usr/sbin/volencap [-g diskgroup] [-p volprefix] [privlen=nn] [nconfig=nn] { diskname | partition_name | domain_name }...
/usr/sbin/volencap -k { diskname | partition_name | domain_name }...
/usr/sbin/volencap -k-a
/usr/sbin/volencap -s
/sbin/volreconfig
OPTIONS
Puts the encapsulated disk into the disk group specified by disk group ID or disk group name. Instructs volencap to use the specified vol-
prefix as the prefix for LSM volume names generated. This is useful if the LSM volume names generated already exist. Instructs volencap to
remove any pending encapsulation requests for the specified disk(s), partition(s), or domain(s). Instructs volencap to remove all pending
encapsulation requests. Displays all pending encapsulation requests.
DESCRIPTION
Disk partitions that have data can be added to LSM using the encapsulation process. This enables users with existing data in disk parti-
tions to easily migrate to the use of LSM volumes instead of disk partitions.
The /usr/sbin/volencap command is used to encapsulate one or many disk partitions or AdvFS domains.
If an individual partition is specified for encapsulation, the volencap command creates a nopriv disk and a volume for that partition.
If an entire disk is specified, the volencap command creates a nopriv disk and volume for each in-use partition on the disk.
If an AdvFS domain is specified, all disk partitions in the domain are converted to LSM volumes.
You can use the volencap command to encapsulate the partitions on the boot disk, including the root file system, primary swap, usr and var
partitions, to place them under LSM control. See the Logical Storage Manager manual for more information on encapsulating these partitions.
The volencap command can be run directly or through the voldiskadm menus. The volencap command generates LSM commands that are later exe-
cuted by the /sbin/volreconfig command to perform the actual conversion of disk partitions to LSM volumes.
If the disk partition contains a mounted file system or is otherwise open or in use, the volreconfig command will reboot the system to com-
plete the encapsulation process. If you cannot reboot the system at the time you encapsulate the disk partition, either defer running the
volreconfig command until you can reboot the system, or unmount or close the disk partition, then run the volreconfig command.
See the Logical Storage Manager manual for more details.
ATTRIBUTES
Specifies the size of the LSM private region in bytes, for example, privlen=1024. Specifies the number of log copies and copies of the
configuration database, for example, nconfig=0.
EXAMPLES
To encapsulate all disk partitions on the boot disk called dsk0 to LSM volumes, enter: # volencap dsk0 # volreconfig
The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap
command will execute as the system reboots. To encapsulate only the root file system (dsk0a) and swap (dsk0b) partitions on the
boot disk, enter: # volencap dsk0a dsk0b # volreconfig
The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap
command will execute as the system reboots. To convert all disk partitions in the AdvFS domain called dom1 to LSM volumes, enter: #
volencap dom1 # volreconfig
The volreconfig command will determine if the domain is active, and if so, request confirmation prior to rebooting the system. The
LSM command scripts created by the volencap command will execute as the system reboots.
If the AdvFS filesets in domain dom1 are not mounted, then /sbin/volreconfig can be executed on the command line. To encapsulate
the specific partition dsk1g to an LSM volume, enter: # volencap dsk1g # volreconfig
The volreconfig command will determine if the partition is open, and if so, request confirmation prior to rebooting the system. The
LSM command scripts created by the volencap command will be executed as the system reboots.
SEE ALSO volintro(8)volencap(8)