10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Input data:
I'd like to calculate using value in second column. The value needs to be created using a formula, that employs exp (that is e raise to the power).
awk '{
if(FNR==1){
##if first line than print as is and add third column
print $0,"weight"
}
else{
if($2<=0.01){... (2 Replies)
Discussion started by: genome
2 Replies
2. Shell Programming and Scripting
Example:
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection
In this server i have a path /apps/user/filename(Big.txt)
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path... (4 Replies)
Discussion started by: ChandruBala73
4 Replies
3. Shell Programming and Scripting
Hello All,
In ksh I am trying to ensure that user inputs are integers otherwise redisplay prompt with the following code;
a=0
b=0
c=0
read b?"Please enter a number: "
read c?"Please enter another number: "
while ] && ]; do
read b?"Not a number. Please enter a number: "
read c?"Not... (4 Replies)
Discussion started by: techieg
4 Replies
4. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
5. Shell Programming and Scripting
Hello All,
I am currently having an issue displaying a exponent value using perl,
I have a perl program which generates an xls file. This xls is populated with values from a database. But for a certain column which I have made explicitely text and also implemented keep_leading_zeroes()... (3 Replies)
Discussion started by: sbasetty
3 Replies
6. Shell Programming and Scripting
Hi Friends,
I've an exponent value like,
$val="9.57669e-05";
I want to convert this value to floating point value in PERL scripting.
I tried googling for the solution, and also asked many perl friends. Unfortunately, I didn't get answer.
Could you please help me?
Thanks in advance... (4 Replies)
Discussion started by: ganapati
4 Replies
7. Programming
A conditional statement cause it:
if(strlen(str) < n1+1) {
-------
} (7 Replies)
Discussion started by: cdbug
7 Replies
8. Shell Programming and Scripting
Hi members, I am working in WebSphere in Unix environment. we are working with 500 odd servers and most of the times processes got down. Can i have any shell script through whih some popup with alarm get raised whenever some server get down. kindly help.. Thanks Rishi (1 Reply)
Discussion started by: rishi.madan
1 Replies
9. Shell Programming and Scripting
Hi All,
Please help to write the script that should raise an alarm if the new logs will not come in the log file.
In other words i want to write a script which will monitor the log file continuously and will raise an alarm if the logs will not come after some time suppose 5... (5 Replies)
Discussion started by: akhtar.bhat
5 Replies
10. Programming
I am trying to send a SIGUSR1 to a set of process. Please tell
me how to do. I've tried the system call raise(int sig) but it just
raise a signal of to the 'current process.'
My program is about a network chat server. When a client
connects in, The main process will fork a new process... (1 Reply)
Discussion started by: Namely
1 Replies