Sponsored Content
Full Discussion: Doing Checks on a file
Top Forums UNIX for Advanced & Expert Users Doing Checks on a file Post 302224070 by era on Tuesday 12th of August 2008 07:18:42 AM
Old 08-12-2008
zaxxon: It's not like I'm a higher authority on that particular issue, just a more vocal one, perhaps.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perform some checks on file using perl

hi i want check for PVCS header in file if its present then check if its in proper format or not i want to do this is in perl on windows. this is what i am doing : 1 . open file 2 . check for "PVCS information" if found then store the line no to $line var. 3 . check for "sccs" header ... (0 Replies)
Discussion started by: zedex
0 Replies

2. UNIX for Dummies Questions & Answers

health checks

Hello Anyone please help me with a health check script on HP-UX. (1 Reply)
Discussion started by: mahlathini
1 Replies

3. Shell Programming and Scripting

to perform checks line by line on a file

Hi, I have a file abc.txt with data like this 1 /test/ 2 /test/file.txt 3 /data/ 4 /data/file1.txt 5 /data/file2.txt I want to take out every path from the file and check if its a directory or file. I am trying it with cut with something like this but it doesnt work ... (7 Replies)
Discussion started by: muaz
7 Replies

4. UNIX for Advanced & Expert Users

speed test +20,000 file existance checks too slow

Need to make a very fast file existence checker. Passing in 20-50K num of files In the code below ${file} is a file with a listing of +20,000 files. test_speed is the script. I am commenting out the results of <time test_speed try>. The normal "test -f" is much much too slow when a system... (2 Replies)
Discussion started by: nullwhat
2 Replies

5. AIX

Pre-checks

AIX Guys!!! What pre-checks would you do on a 5.3 server before TL/SP/APAR installation? Bala (2 Replies)
Discussion started by: balaji_prk
2 Replies

6. UNIX for Dummies Questions & Answers

Daily File Checks

Hello all, I'm sorry if this is answered elsewhere, I've used the search function and can't find the specifics of what I'm after. I am brand new to playing with linux, and ideally I want to get better to help the company that I now work for. What I want to do: Create a script that I... (4 Replies)
Discussion started by: Aussiemick
4 Replies

7. Shell Programming and Scripting

Daily Checks

Hey Guys, I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16:... (7 Replies)
Discussion started by: Racegod
7 Replies

8. Shell Programming and Scripting

Script to do the following checks

Hi , I need a script for processing below scenario. I have to check daily by doing ftp IP to check it is logging or not. So i want this activity to be automated such that if login succesful i will get "FTP LOGIN SUCCESS" in a log file and if fails i want the error message in the same log... (1 Reply)
Discussion started by: sv0081493
1 Replies

9. Shell Programming and Scripting

Extract timestamp from first record in xml file and it checks if not it will replace first record

I have test.xml <emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp> <Join><id>101</id><city>london</city><date>06/06/14 2011</date></join> <Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join> <Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies
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)
All times are GMT -4. The time now is 07:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy