Sponsored Content
Full Discussion: Get value from file!!!!
Top Forums UNIX for Dummies Questions & Answers Get value from file!!!! Post 302116271 by jibsonline on Wednesday 2nd of May 2007 05:18:45 PM
Old 05-02-2007
Java

I'm clear with that part now. I removed the decimal points using gawk itself and made it an integer. Now my problem is that i have a file called flag which would be having the values 1 or 0 indicating that the server is already stopped or not so. It is used along with the if condition so that i need not stop an already stopped server. I need to get the value in the text file to a variable in the script. Is it possible????
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
Sys::Statistics::Linux::LoadAVG(3pm)			User Contributed Perl Documentation		      Sys::Statistics::Linux::LoadAVG(3pm)

NAME
Sys::Statistics::Linux::LoadAVG - Collect linux load average statistics. SYNOPSIS
use Sys::Statistics::Linux::LoadAVG; my $lxs = Sys::Statistics::Linux::LoadAVG->new; my $stat = $lxs->get; DESCRIPTION
Sys::Statistics::Linux::LoadAVG gathers the load average from the virtual /proc filesystem (procfs). For more information read the documentation of the front-end module Sys::Statistics::Linux. LOAD AVERAGE STATISTICS
Generated by /proc/loadavg. avg_1 - The average processor workload of the last minute. avg_5 - The average processor workload of the last five minutes. avg_15 - The average processor workload of the last fifteen minutes. METHODS
new() Call "new()" to create a new object. my $lxs = Sys::Statistics::Linux::LoadAVG->new; It's possible to set the path to the proc filesystem. Sys::Statistics::Linux::LoadAVG->new( files => { # This is the default path => '/proc', loadavg => 'loadavg', } ); get() Call "get()" to get the statistics. "get()" returns the statistics as a hash reference. my $stat = $lxs->get; EXPORTS
No exports. SEE ALSO
proc(5) REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>. AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>. COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-09 Sys::Statistics::Linux::LoadAVG(3pm)
All times are GMT -4. The time now is 11:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy