Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2007
Registered User
 

Join Date: Feb 2007
Posts: 37
Extracting information from a template

I have a template that I usually use to generate stats on an hourly basis for a number of cell sites altogether. I would like to be able to write a script that would go to the template and extract the information for any single site at any time during the day. For example, let's say that my database has 24 sites (named a to z), I only want to retrieve the stats for site "m" at 11:23 today. How do I accomplish that?

Thanks for the help!!
Sponsored Links
  #2 (permalink)  
Old 03-06-2007
sb008 sb008 is offline Forum Advisor  
Registered User
 

Join Date: Jan 2007
Posts: 386
Quote:
Originally Posted by Ernst
I have a template that I usually use to generate stats on an hourly basis for a number of cell sites altogether. I would like to be able to write a script that would go to the template and extract the information for any single site at any time during the day. For example, let's say that my database has 24 sites (named a to z), I only want to retrieve the stats for site "m" at 11:23 today. How do I accomplish that?

Thanks for the help!!
It would help if you would provide a sample of what the template looks like.
  #3 (permalink)  
Old 03-06-2007
Registered User
 

Join Date: Feb 2007
Posts: 37
Extracting info from a template

Guys, I am waiting for your input to this. Let me know what you think.
  #4 (permalink)  
Old 03-06-2007
Registered User
 

Join Date: Feb 2007
Posts: 37
Extraction info from a template

That should help!!! See below:



%set r_totaldrop 0
%set r_totalassgn 0
%set r_totalseiz 0
%set r_droprate 0
%set r_accessrate 0


%set nc 0 # Number of CDMA cell site faces
%set num_lines 0
%set need_header 1


"Cell PAF OrigSeiz OrigAssgn TermSeiz OrigAssgn CSupF cSHO %Comp HH %Comp HA %
Comp 3GPkCE Erlang SecErlang 3GDrop AcsAvg Peak PgAvg Peak FOVF %Hour
ROVF %Hour Unl CellPPBlk CellActFail CellTCCCF CSHTHoff MRFERII F1 F2 F3 F4\n"



%for c = a to z

%set r_ppblk 0
%set r_actfail 0
%set r_tccf 0
  #5 (permalink)  
Old 03-07-2007
dennis.jacob's Avatar
dj - the student
 

Join Date: Feb 2007
Location: Bangalore/Cochin
Posts: 823
I am not getting a clear picture of what exactly you need.Could you show a sample input and sample output..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
create users from template rijeshpp Shell Programming and Scripting 0 10-31-2007 10:29 AM
Extracting information from text fields. spindoctor UNIX for Dummies Questions & Answers 24 06-09-2007 02:17 PM
vi calling template Euler04 UNIX for Dummies Questions & Answers 1 11-22-2005 10:06 AM
About template constraints sarwan Programming 0 11-21-2005 04:11 AM
substitution of variable in template supercbw Shell Programming and Scripting 1 04-11-2002 01:58 PM



All times are GMT -4. The time now is 02:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0