10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I wanted to write a perl script to read the content in a file,the file content is either 0 (zero) OR 1. The idea is like this.
If (content =1), then it will proceed to perform some step. and then update the file content to 0(zero)
else
if (content =0), it will update the content to... (11 Replies)
Discussion started by: hploh
11 Replies
2. Shell Programming and Scripting
Hi,
I have a perl script that prompts for a user to enter a password before doing what it does. This works well if I call it directly from a bash script
#!/bin/bash
/path/to/perl/script $arg1 $arg2
But, when I try to enclose this within a while read loop, the perl script is called but... (1 Reply)
Discussion started by: prafulnama
1 Replies
3. Shell Programming and Scripting
Hi,
I have on Designdocument in that information is stored with in tabular format.I need Perl/unix script to read and write the data
using perl script?
Regards,
Ravi (4 Replies)
Discussion started by: toravi.pentaho
4 Replies
4. Shell Programming and Scripting
Hi,
I have on Designdocument in that information is stored with in tabular format.I need Perlscript to read and write the datausing perl script?
Regards,
Ravi (0 Replies)
Discussion started by: toravi.pentaho
0 Replies
5. Shell Programming and Scripting
I need shell 0r Perl script to read multiple input and do something and come out
example:
echo “ enter the host names separated by space “
read servers
foreach @servers
{ do
do something
done}
Here host names like host1 host2 host3 . . . . . . . so on
Please help me... (8 Replies)
Discussion started by: sreedhargouda
8 Replies
6. Shell Programming and Scripting
Hi,
I have written a cgi perl script to read a file and display its contents. But if i have to access file located on network (local network), then i am unable to do so. However if i run script through shell it works, but through cgi script it generates no result. I have mapped network drive... (0 Replies)
Discussion started by: sarbjit
0 Replies
7. Shell Programming and Scripting
Good day to all!
I'm currently doing a perl script about reading a directory.
What I'm going to do is write a script that will check whether the backup file is created daily or not inside the directory. If the backup file created, it will display "OK", else it will display the date of "no... (4 Replies)
Discussion started by: ellechim
4 Replies
8. Shell Programming and Scripting
Hi,
I am new to perl scripting
Can you please let me know if you have an example on how to read the hidden password and read from it?
Thanks,
Mahesh (1 Reply)
Discussion started by: mum6ue
1 Replies
9. Shell Programming and Scripting
Solaris 10
Korn shell ksh,
Hi there,
I have figured out to get yesterday's date which is using the below command:
TZ=GMT+24; date +%d-%b-%Y to get the format of 30-Sep-2008 and
TZ=GMT+24; date +%Y%m%d to get the format of 20080930.
I need this two format. In my perl script below I need... (4 Replies)
Discussion started by: bulkbiz
4 Replies
10. Shell Programming and Scripting
Hello,
I am new to mailx and perl and I need help.
I need create a shell script to read the mails on the SUN server, then parse the subject line and message body of each email to extract particular data so that I can pass these data fields in as application parameters to invoke a java... (4 Replies)
Discussion started by: jliharper
4 Replies
virt-list-partitions(1) Virtualization Support virt-list-partitions(1)
NAME
virt-list-partitions - List partitions in a virtual machine or disk image
SYNOPSIS
virt-list-partitions [--options] domname
virt-list-partitions [--options] disk.img [disk.img ...]
OBSOLETE
This tool is obsolete. Use virt-filesystems(1) as a more flexible replacement.
DESCRIPTION
"virt-list-partitions" is a command line tool to list the partitions that are contained in a virtual machine or disk image. It is mainly
useful as a first step to using virt-resize(1).
"virt-list-partitions" is just a simple wrapper around libguestfs(3) functionality. For more complex cases you should look at the
guestfish(1) tool.
OPTIONS
--help
Display brief help.
--version
Display version number and exit.
-c URI
--connect URI
If using libvirt, connect to the given URI. If omitted, then we connect to the default libvirt hypervisor.
If you specify guest block devices directly, then libvirt is not used at all.
--format raw
Specify the format of disk images given on the command line. If this is omitted then the format is autodetected from the content of
the disk image.
If disk images are requested from libvirt, then this program asks libvirt for this information. In this case, the value of the format
parameter is ignored.
If working with untrusted raw-format guest disk images, you should ensure the format is always specified.
-h
--human-readable
Show sizes in human-readable form (eg. "1G").
-l
--long
With this option, "virt-list-partitions" displays the type and size of each partition too (where "type" means "ext3", "pv" etc.)
-t
--total
Display the total size of each block device (as a separate row or rows).
SHELL QUOTING
Libvirt guest names can contain arbitrary characters, some of which have meaning to the shell such as "#" and space. You may need to quote
or escape these characters on the command line. See the shell manual page sh(1) for details.
SEE ALSO
guestfs(3), guestfish(1), virt-filesystems(1), virt-list-filesystems(1), virt-resize(1), Sys::Guestfs(3), Sys::Guestfs::Lib(3),
Sys::Virt(3), <http://libguestfs.org/>.
AUTHOR
Richard W.M. Jones <http://people.redhat.com/~rjones/>
COPYRIGHT
Copyright (C) 2009-2012 Red Hat Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
libguestfs-1.18.1 2013-12-07 virt-list-partitions(1)