10 More Discussions You Might Find Interesting
1. Debian
Dear List -
I am trying to capture data from a serial port and write it to a file.
/var/www$ cat /dev/ttyS0 > scale_value.html
cat: /dev/ttyS0: Device or resource busy
/var/www# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:90... (11 Replies)
Discussion started by: Meow613
11 Replies
2. Shell Programming and Scripting
I have a csv file called template.csv which has the following data
Name, Age, Height
Jessica Jesse, 18, 150
Now what I want to do is use a shell script to read the name age and height which looks like this:
#!bin/sh
INPUT='template.csv
while read Name Age Height
do
echo... (2 Replies)
Discussion started by: JSNY
2 Replies
3. Programming
I have a list of files, 4 files for example
Then I have two buffers ifa and ifb giving me the file numbers
from which I need to get a group of data. For example, the first
four groups use file 1. The fifth group uses data from file 1 and
file 2.
I am thinking of storing all the data in the... (1 Reply)
Discussion started by: kristinu
1 Replies
4. Shell Programming and Scripting
I need some help with this code below, i doesnt know why it will run twice with my function, but my function only got if else, any other way that can read line and put into array?
while read line; do
read -A array <<<$line
n=${#array}
for ((i=1;i<$n;i++)); do
print... (1 Reply)
Discussion started by: gavin_L
1 Replies
5. Shell Programming and Scripting
Hi,
I have files that has got ebcdic character set and also, there are fields like binary and hex fields. is there a way to convert this to normal ascii data by taking care of comp & comp-3 fields?
Many Thanks!! (10 Replies)
Discussion started by: ahmedwaseem2000
10 Replies
6. Shell Programming and Scripting
Hi,
I have a sample data file that contains name-value pairs in it.
For example:
name1=value1
name2=value2
name3=value3
...
...
...
My concern is
1. How to get values of name1, name2, name3 using korn shell script?
2. I don't want to access each varible using $name1,$name2, $name3... (2 Replies)
Discussion started by: vinna
2 Replies
7. Programming
hi
iam reading data from web page using request socket and curl socket.
now my problem is some the web page containg data as a image so how can i read the data from a image.
thank,inadvance.
sree (3 Replies)
Discussion started by: phani_sree
3 Replies
8. SCO
I have a server with SCO Open Server 5 and I need to copy data files from the hard drive. Can this be completed with a Windows PC with the hard drive connected with a USB caddy? I have no other way to do this. Server not running.
TIA
Tim (2 Replies)
Discussion started by: taordw
2 Replies
9. Shell Programming and Scripting
Hi All,
I am having trouble through, I am reading the input from tab delimited file containing several records,
e.g.
line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..
on the basis of certain fields for each record in input file, I have to retrieve... (1 Reply)
Discussion started by: Sonu4lov
1 Replies
10. Shell Programming and Scripting
Experts I am new to UNIX shell programming ( or scripting). My problem is that
I have an ASCII file in which column wise data is present, the columns are seperated by spaces. I want to read each columns data and store it in arrays, next I will be using the arrays to perform some numerical... (1 Reply)
Discussion started by: FarhanNaseer
1 Replies
VGDISPLAY(8) System Manager's Manual VGDISPLAY(8)
NAME
vgdisplay - display attributes of volume groups
SYNOPSIS
vgdisplay [-A|--activevolumegroups] [-c|--colon] [-d|--debug] [-D|--disk] [-h|--help] [-s|--short] [-v[v]|--verbose [--verbose]] [--ver-
sion] [VolumeGroupName...]
DESCRIPTION
vgdisplay allows you to see the attributes of VolumeGroupName (or all volume groups if none is given) with it's physical and logical vol-
umes and their sizes etc.
OPTIONS
-A, --activevolumegroups
Only select the active volume groups.
-c, --colon
Generate colon seperated output for easier parsing in scripts or programs.
The values are:
1 volume group name
2 volume group access
3 volume group status
4 internal volume group number
5 maximum number of logical volumes
6 current number of logical volumes
7 open count of all logical volumes in this volume group
8 maximum logical volume size
9 maximum number of physical volumes
10 current number of physical volumes
11 actual number of physical volumes
12 size of volume group in kilobytes
13 physical extent size
14 total number of physical extents for this volume group
15 allocated number of physical extents for this volume group
16 free number of physical extents for this volume group
17 uuid of volume group
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-D, --disk
Show attributes from the volume group descriptor area on disk(s). Without this switch they are shown from the kernel. Useful if
the volume group isn't activated.
-h, --help
Print a usage message on standard output and exit successfully.
-s, --short
Give a short listing showing the existence of volume groups.
-v, --verbose
Display verbose information containing long listings of physical and logical volumes. If given twice, also display verbose runtime
information of vgdisplay's activities.
--version
Display version and exit successfully.
DIAGNOSTICS
vgdisplay returns an exit code of 0 for success and > 0 for error:
1 error reading VGDA
2 volume group doesn't exist
3 not all physical volumes of volume group online
4 volume group not found
5 no volume groups found at all
6 error reading VGDA from lvmtab
95 driver/module not in kernel
96 invalid I/O protocol version
97 error locking logical volume manager
98 invalid lvmtab (run vgscan(8))
99 invalid command line
SEE ALSO
lvm(8), pvcreate(8), vgcreate(8), lvcreate(8)
AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com>
Heinz Mauelshagen LVM TOOLS VGDISPLAY(8)