09-28-2015
it should only execute if ScriptElapsedTime="1-3:20"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know the correct syntax for computing arithmetic expressions inside the echo statement? Let me know, thanks (3 Replies)
Discussion started by: circleW
3 Replies
2. Shell Programming and Scripting
Hi,
Can some1 help me to output a tab in an echo statement.
I have tried
echo "RNC: \t NODEB"
but dont get the correct output.
I am a beginnger to unix, so pls hold back the laughs....if u can (5 Replies)
Discussion started by: sunils27
5 Replies
3. Shell Programming and Scripting
Hi All,
I am pasting my code below
if # e means file exists
then
echo OFR_Configlist exists >> OFR_Backup_Configfiles.log
else
echo OFR_Configlist Not exists >> OFR_Backup_Configfiles.log
exit
fi
How can i show the echo message in console also at the same time?
I dont want to write... (3 Replies)
Discussion started by: subin_bala
3 Replies
4. Shell Programming and Scripting
Hello All,
I need to set the width or number of columns for my dynamic output in the echo statement.
statement is like:
echo " <output> "
here the <output> is dyamice and can be of any number of characters, the " " should always start in same column everytime it is... (4 Replies)
Discussion started by: s123.radha
4 Replies
5. UNIX for Advanced & Expert Users
Hi, I have a question:
the script A run in the HostA call the script B on the HostB:
ex.. ksh:B
.......
........
........ remsh HostB ec........
......
......
the prog.B on the host B make more function but the last command is echo of srting : ex
ksk script B
....
...... (0 Replies)
Discussion started by: ZINGARO
0 Replies
6. Shell Programming and Scripting
I have script like
echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS
I want the output of both the echo statement in one line
How can i do this (3 Replies)
Discussion started by: scorp_rahul23
3 Replies
7. Shell Programming and Scripting
I have two text files, each of then only containing ONE line and NO carraige return or white space at the end...how do I echo both of these text files to the screen without putting an extra line? I want to do this from the command line.
file1.txt:
this is file1.txt 1
file2.txt:
this is... (4 Replies)
Discussion started by: ajp7701
4 Replies
8. Shell Programming and Scripting
In a Ksh functions, when you have both echo and return respectively - what does it do. E.g.
Func B ()
{
.....
{
.....
echo $Varaible
}
Return 0
}
Func A ()
{
$Var1 = Func B()
....
....
} (6 Replies)
Discussion started by: gagan8877
6 Replies
9. Shell Programming and Scripting
I was searching for an option where i can echo some strings together with the contents of a file.
Eg. I was to echo the below string to a file
"alter application PMS_ add variable CurrYear Y2009;" >> ${ESS_MAXL_DIR}/PMS_SUB.txt
The value 2009 is coming from a file called date.txt without the... (3 Replies)
Discussion started by: Celvin VK
3 Replies
10. AIX
Hello,
Our AIX box has recently been upgraded to TL12 (oslevel -s = 5300-12-04-1119).
Now one of our ksh scripts is returning 1 when writing to a pipe, the command to write to the pipe is:
echo "A" "B" "C" >> /usr/Pipe.Pipe
Anyone have any ideas?
Thanks (2 Replies)
Discussion started by: dendright
2 Replies
LEARN ABOUT DEBIAN
tangram::cursor
Tangram::Cursor(3pm) User Contributed Perl Documentation Tangram::Cursor(3pm)
NAME
Tangram::Cursor - traverse a result set
SYNOPSIS
$cursor = $storage->cursor($remote, $filter);
while (my $obj = $cursor->current())
{
# process $obj
$cursor->next();
}
$cursor->execute();
while (my $obj = $cursor->current())
{
# process $obj
$cursor->next();
}
DESCRIPTION
A Cursor makes it possible to iterate over a result set without loading all the objects in memory.
See also the "limit" option to the select method of the Tangram::Storage class.
INSTANCE METHODS
current
$obj = $cursor->current();
Returns the current object, or undef() if the result set is exhausted.
next
$obj = $cursor->next();
@obj = $cursor->next();
Moves to the next object in the result set, if any. Returns the new current object, or undef() if the result set is exhausted. In list con-
text, return all the remaining objects.
execute
$cursor->execute();
Moves the cursor to the first object in the result set, and return it. Note that preparing Cursors is an expensive operation, you should
reuse them if possible. execute() allows just that.
execute() may be called several times in a row, or on a Cursor that has just been obtained from a Storage, without ill effects.
residue
my @vals = $cursor->residue();
Returns the values of the Expr that were passed to the "retrieve" directive of the Storage::select() or Storage::cursor() statement.
CURSORS AND CONNECTIONS
Each Cursor opens its own connection to the database.
SEE ALSO
Tangram::Storage
perl v5.8.8 2006-03-29 Tangram::Cursor(3pm)