I am working on a script where I need to add one functionality i.e. to could the number of tar files at particular location...but the script is working in below way.
1) create sandbox
2) Drop old member function
3) addmember function
4) Apply checkpoint lable
5) Resync operation(This resync operation occurs at particlar location
and script runs in loops..it fetchs the data
from some particular file
script pick one line at a time and do the above operation I want when it do resync operation it find the tar ball in above resyn location and count..and each resync operation it will do the same .After that I can find the number of tar balls resync is equal to number of line in abobe file.This can be done only if I know how to implment the counter
Hello everyone,
how can I send output to the screen from a running script or tcl, in such a way that if a loop is executing I will see the rolling counter on my screen as the records are processed in the loop. I do not want the screen to scroll, though. In other words can a var's value be painted... (2 Replies)
Say I have (in psuedocode)
For i=1 to 10
tar cvfb /... 5*i /junk(i)
end
What I mean is that I want each successive for loop to have the block size parameter be 5 times the current counter. This isn't my actual code, just a stupid example...So the question is how do I descrive that parameter... (2 Replies)
The scenario is like this :
I need to read records from a file one by one and increment counter1, if a certain field matches with a number say "40"..the script should increment the counter2 and also extract a corresponding field from the same line and adding them one by one and redirecting the the... (5 Replies)
Hi,
hope I am posting in the right section.
My problem is that I have 2 or more arguments passed and I want to check if the arguments passed exists or not.
The first argument should not exist and the remaining others should exist.
example:
./shells.sh argument1 argument2 argument3
... (5 Replies)
Hello Everyone,
I'm in need of assistance on creating a script with a counter on a certain string.
Basically this script opens a log file and displays certain log data. There are two key words in the log. START and FINISH. In between the START and FINISH is a variable ACTNUMBER. It will... (1 Reply)
hello,
File 1
main Group sub group
MIT VAR_1D_DATA_TYPE 23-03-2012
MIT VAR_1D_DATA_TYPE 22-03-2012
MIT VAR_10D_DATA_TYPE 23-03-2012
MIT VAR_10D_DATA_TYPE 22-03-2012
MIT ... (0 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The program is supposed to read in text from a given file ( different samples provided in the homework but not... (1 Reply)
Hi friends, I just want to try some thing with shell using loop and counter
I have 30 Directory, in each directory number of files say 5, 10, 20 etc...
directory_1
directory_2
directory_n
what I want to do is read files from directory_1 say 5 files
if my counter is like this
m=2000 ... (6 Replies)
Hi!
Can anyone explain this? The counter CDR_count should go on forever, but it suddenly resets at every step of the FOR loop (I know this because $_file has exactly 378 records). However, the counter reset is OUTSIDE the FOR loop. What's going on??
#!/bin/bash
if || ; then
echo
... (8 Replies)
#!/usr/bin/ksh
c=0
while ]; do
echo /tmp/unex NOT found, iter : $c;
((c = $c + 1));
sleep 2;
done
so, the above counter doesn't work, already tried both -lt & -gt, and changed || to &&
so what am I missing?
Thanks in advance (5 Replies)
Discussion started by: unexistance
5 Replies
LEARN ABOUT CENTOS
cimreparchive
cimreparchive(8) System Manager's Manual cimreparchive(8)NAME
cimreparchive - create an archive copy of the CIM Server repository
SYNOPSIS
cimreparchive archive_file
cimreparchive --help
cimreparchive --version
DESCRIPTION
The cimreparchive command creates an archive copy of the CIM Server repository in the specified archive_file. The archive copy is assured
to contain a consistent repository state even if it is created while the CIM Server is running.
The archive_file is created using the tar(1) command. To restore the repository from the archive_file, stop the cimserver, move the active
repository files to a different location, use tar(2) to extract the archived repository files, and restart the cimserver. (Note that the
repository location is printed when an archive file is created.)
Options
cimreparchive recognizes the following options:
--help Displays the command help message.
--version Displays the CIM Server version number.
EXIT STATUS
When an error occurs, an error message is written to the standard error stream and a non-zero exit status value is returned. The following
exit status values are defined:
0 Success
1 General error
2 Failed to initiate archive operation
3 Archive operation failed
SEE ALSO cimserver(8), tar(1).
cimreparchive(8)