Thank you for the reply. I did as you suggested, and changed
to
but still get the same error. I get it when I used
as well (in the first iteration of this I had attempted). The error
is curious, as the leading single quote seems like it belongs at the end of the line behind 'VOLNAME and the incorrect encapsulation appears to be making it read the variable as a command. Is there another way to pass the input?
hi!
i need to do a ksh script that uses a wile loop that is fed form below
while read line
do
some things
done < myfile
inside the while loop i need to read user input to ask the user what he wants to do, but "read" reads the file, and not the standard input
while read line
do
... (2 Replies)
Hi,
The gcc compiler has warned about using gets(), so I've been trying my hand at getline.
Problem is that I've been able to read from a file, but what I really need is to read from a user's input.
I want to use getline like a scanf() command, but I can't figure what to substitute for the fp... (6 Replies)
Hiii
I wanna a read a line of text from standard input. The user enter data like this way
name phone_no month1_salary month2_salary
that is user enter the name ,phone no and salary of 2 months in a single line by giving spaces. I wanna add the 3rd and 4th fields ...ie add both... (4 Replies)
I need to write a bourne shell script (solaris 10) that accepts input from the user. The input will be a command- any command like ls/ pwd/ mv etc. After the input is read, the shell must execute the command supplied by the user.
I know we use read to play with user inputs. Just not sure how to... (2 Replies)
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks:
Copy directory tree
Delete files or directories
Output Information (this part is done )
*Copy directory tree
The “Copy... (2 Replies)
Below is a simple script to prompt for user input while suggesting an editable default value at the prompt:
shortname=user1
read -e -i $shortname -p "Please enter the username you would like to add: " input
USERNAME="${input:-$shortname}"
Please enter the username you would like to add:... (3 Replies)
I am creating a bash that uses perl . The below code closes before the input is entered. If I run the perl as a .pl it is fine. What am I doing wrong? Thank you :).
#!/bin/bash
cd 'C:\Users\cmccabe\Desktop\wget'
wget -O getCSV.txt http://xxx.xx.xxx.xxx/data/getCSV.csv
print... (4 Replies)
Hi,
i am working on one automation , for that i have writing one shell program that take user input in "while read line" block. but read command is taking value that is readed by While block.
while read line; do
command 1;
command 2
echo -n "Do you want to continute > "
read rsp... (2 Replies)
Hi,
This query is a part of a much more lengthy script.
I wish to look for all the files in a folder named "data" which in this case has two files i.e. plan.war and agent.properties. For all the files found under data I wish to ask the user as to where they wish copy the files to.
Below,... (14 Replies)
Discussion started by: mohtashims
14 Replies
LEARN ABOUT CENTOS
gluster
Gluster(8) Gluster Inc. Gluster(8)NAME
gluster - Gluster Console Manager (command line utility)
SYNOPSIS
gluster
To run the program and display gluster prompt:
gluster
(or)
To specify a command directly:
gluster [commands] [options]
DESCRIPTION
The Gluster Console Manager is a command line utility for elastic volume management. You can run the gluster command on any export server.
The command enables administrators to perform cloud operations, such as creating, expanding, shrinking, rebalancing, and migrating volumes
without needing to schedule server downtime.
COMMANDS
Volume Commands
volume info [all|<VOLNAME>]
Display information about all volumes, or the specified volume.
volume create <NEW-VOLNAME> [device vg] [stripe <COUNT>] [replica <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ...
Create a new volume of the specified type using the specified bricks and transport type (the default transport type is tcp). To
create a volume with both transports (tcp and rdma), give 'transport tcp,rdma' as an option. device vg parameter specifies volume
should use block backend instead of regular posix backend. In this case NEW-BRICK should specify an existing Volume Group and there
can be only one brick for Block backend volumes. Refer Block backend section for more details
volume delete <VOLNAME>
Delete the specified volume.
volume start <VOLNAME>
Start the specified volume.
volume stop <VOLNAME> [force]
Stop the specified volume.
volume rename <VOLNAME> <NEW-VOLNAME>
Rename the specified volume.
volume set <VOLNAME> <OPTION> <PARAMETER> [<OPTION> <PARAMETER>] ...
Set the volume options.
volume help
Display help for the volume command.
Block backend
By specifying "device vg" in volume create, a volume capable of exporting block devices(ie Volume Groups (VG)) is created. As of now
exporting only VG is supported. While creating block backend volume the "VG" (mentioned in NEW-BRICK) must exist (ie created with vgcre-
ate). VG is exported as a directory and all LVs under that VG will be exported as files. Please refer BD commands section for Block backend
related commands
Brick Commands
volume add-brick <VOLNAME> <NEW-BRICK> ...
Add the specified brick to the specified volume.
volume remove-brick <VOLNAME> <BRICK> ...
Remove the specified brick from the specified volume.
Note: If you remove the brick, the data stored in that brick will not be available. You can migrate data from one brick to another
using replace-brick option.
volume rebalance-brick <VOLNAME>(<BRICK> <NEW-BRICK>) start
Start rebalancing the specified volume.
volume rebalance <VOLNAME> stop
Stop rebalancing the specified volume.
volume rebalance <VOLNAME> status
Display the rebalance status of the specified volume.
volume replace-brick <VOLNAME> (<BRICK> <NEW-BRICK>) start|pause|abort|status|commit
Replace the specified brick.
Log Commands
volume log filename <VOLNAME> [BRICK] <DIRECTORY>
Set the log directory for the corresponding volume/brick.
volume log locate <VOLNAME> [BRICK]
Locate the log file for corresponding volume/brick.
volume log rotate <VOLNAME> [BRICK]
Rotate the log file for corresponding volume/brick.
Peer Commands
peer probe <HOSTNAME>
Probe the specified peer.
peer detach <HOSTNAME>
Detach the specified peer.
peer status
Display the status of peers.
peer help
Display help for the peer command.
BD commands
bd create <VOLNAME:/path-to-image> <size>
Creates a new image of given size in the volume. Size can be suffixed with MB, GB etc, if nothing specified MB is taken as default.
bd delete <VOLNAME:/path-to-image>
Deletes a image in the volume
bd clone <VOLNAME:/path-to-image> <new-image>
Clones an existing image (full clone)
bd snapshot <VOLNAME:/path-to-image> <new-image> <size>
Creates a linked clone of an existing image with given size. Size can be suffixed with MB, GB etc, if nothing specified MB is taken
as default.
Other Commands
help Display the command options.
quit Exit the gluster command line interface.
FILES
/var/lib/glusterd/*
SEE ALSO fusermount(1), mount.glusterfs(8), glusterfs(8), glusterd(8)COPYRIGHT
Copyright(c) 2006-2011 Gluster, Inc. <http://www.gluster.com>
22 November 2012 Gluster command line utility Gluster(8)