06-27-2007
hi
thanks for quick response
it works i did this :
#!/bin/bash
cd /usr3/prod
grep ERROR /usr3/prod/ind.log > /usr3/prod/ind_err.log
if test -s /usr3/prod/ind_err.log
then
wall "error during process"
else
wall "process succeed"
fi
can i be sure that this command is not hold/interrupting to other proccess from running ? cause i needed to do enter cause the message is stuck on the screen
what are you saying ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
whats the cmd to send messages using terminal to another computer on our network?
We are running SOlaris CDE (5 Replies)
Discussion started by: korupt
5 Replies
2. Cybersecurity
Hi,
Does anyone have a script (for AIX) that sends a message to a user that his password will be expired within 5 days for ex.
Thanks (1 Reply)
Discussion started by: Diederd
1 Replies
3. Programming
Hi folks,
Just wondering if anyone knows how to send intr/break key to remote tty (shell), a simple example would be great!
thx (2 Replies)
Discussion started by: andryk
2 Replies
4. UNIX for Advanced & Expert Users
I'm testing out some ESMTP AUTH stuff, and it requires that the username and password be on the same line separated by a null character. Does anyone know how to echo the ASCII null character?
Thanks,
Alex (3 Replies)
Discussion started by: vertigo23
3 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to send a mail with an attachment and message. Following command I am using.
(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I browsed thru the previous posts and couldnt find a solution for my problem. Hence I decided to post it.
I have a buffer array that I want to send thru a message queue. The array consists of a header structure and a payload structure memcopied to it. When I print the contents of the... (1 Reply)
Discussion started by: zeebie
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am running a program in a terminal.
this program is just printing random words.
I can change the color of each word by entering the first character of the color(for example G for Green).
I want to write a bash code that runs in a different terminal and sends different characters to... (3 Replies)
Discussion started by: alireza6485
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All! I would like your assistance with an issue that I have been having with OS X (Snow Leopard 10.6.8) and sending mail through the Terminal.
I had been trying to send mail from Terminal to my GMail account from my home, where I have a Verizon DSL Internet connection routed through a... (0 Replies)
Discussion started by: danielsutton
0 Replies
9. Shell Programming and Scripting
Is it possible to add Pager Notification to mailx command??
Or by any other mean.
just want to specify that by Pager i mean a message to the mobile number.
Suppose i have following condition
If ];then
send a message to 9999999999
else
no message to be sent
fi
Is it possible?
I... (5 Replies)
Discussion started by: Sharma331
5 Replies
10. Shell Programming and Scripting
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
math(n) Tcl Math Library math(n)
NAME
math - Tcl Math Library
SYNOPSIS
package require Tcl 8.2
package require math ?1.2?
::math::cov value value ?value ...?
::math::integrate list of xy value pairs
::math::fibonacci n
::math::max value ?value ...?
::math::mean value ?value ...?
::math::min value ?value ...?
::math::prod value ?value ...?
::math::random ?value1? ?value2?
::math::sigma value value ?value ...?
::math::stats value value ?value ...?
::math::sum value ?value ...?
DESCRIPTION
The math package provides utility math functions.
COMMANDS
::math::cov value value ?value ...?
Return the coefficient of variation expressed as percent of two or more numeric values.
::math::integrate list of xy value pairs
Return the area under a "curve" defined by a set of x,y pairs and the error bound as a list.
::math::fibonacci n
Return the n'th Fibonacci number.
::math::max value ?value ...?
Return the maximum of one or more numeric values.
::math::mean value ?value ...?
Return the mean, or "average" of one or more numeric values.
::math::min value ?value ...?
Return the minimum of one or more numeric values.
::math::prod value ?value ...?
Return the product of one or more numeric values.
::math::random ?value1? ?value2?
Return a random number. If no arguments are given, the number is a floating point value between 0 and 1. If one argument is given,
the number is an integer value between 0 and value1. If two arguments are given, the number is an integer value between value1 and
value2.
::math::sigma value value ?value ...?
Return the population standard deviation of two or more numeric values.
::math::stats value value ?value ...?
Return the mean, standard deviation, and coefficient of variation as percent as a list.
::math::sum value ?value ...?
Return the sum of one or more numeric values.
KEYWORDS
math, statistics
math 4.2 math(n)