Sponsored Content
Top Forums Shell Programming and Scripting Dont have a clue which program to use to process flying bat data Post 302503645 by cmp260 on Friday 11th of March 2011 11:13:03 AM
Old 03-11-2011
hi,

I tested the script on a single day (28th) and then again manually using a combination of word excel and plain text to manipulate the data so I could use find/replace.
The results dont match yours exactly although they are close.
my calcs give A = 12 B = 8
wheras your script give A = 11 B = 8
here is the result of my testing (using "-" as replacement for paragraph mark so I could use word find/replace)
0,1-0,0-B-1,1-1,0-A-B-0,1-0,0-0,1-0,0-0,1-1,1-1,0-1,1-0,0-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-1,0-1,1-0,1-0,0-0,1-0,0-0,1-0,0-0,1-0,0-0,1-0,0-0,1-1,0-0,0-0,1-0,0-1,1-1,0-1,1-0,1-0,0-0,1-1,0-0,0-0,1-0,0-0,1-1,1-1,0-0,0-B-1,1-1,0-A-0,1-0,0-0,1-0,0-0,1-1,1-1,0-1,1-1,0-0,0-1,1-1,0-1,1-1,0-A-0,1-0,0-0,1-1,1-1,0-1,1-0,0-1,0-B-1,1-1,0-1,1-1,0-A-0,1-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the results:
your script reports B=24 A=16
wheras manually going over the data, I get B=28 A=16
any ieas what is casusing this?
thanks

---------- Post updated at 02:48 PM ---------- Previous update was at 02:04 PM ----------

Here are stats using the output of my resilts for 31st (B=28, A=16) as you can see my cumulative total result is 11 bats.

BEAM STATE TOTAL 0 1 0 0 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 A
-1 0 1 -1 1 1 -1 1 0 -1 1 1 -1 0 0 -1 1 0 -1 1 1 -1 1 0 -1 1 1 -1 1 0 -1 1 1 -1 1 0 -1 1 1 -1 0 1 -1 0 0 -1 0 1 -1 1 0 -1 0 0 -1 0 1 -1 1 1 -1 0 0 -1 0 1 -1 0 0 -1 1 0 -1 1 1 -1 0 1 -1 0 0 -1 0 1 -1 1 0 -1 0 0 -1 B
-1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 A
-1 0 1 -1 0 0 -1 B
-1 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 B
0 0 1 1 1 1 1 0 0 1 0 1 1 1 0 1 0 0 1 0 1 1 0 0 1 1 1 1 1 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 1 1 0 0 1 0 1 1 1 0 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 1 1 0 1 A
0 0 1 0 1 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 A
-1 B
-1 1 1 0 1 0 0 0 1 0 0 0 0 B
0 0 1 1 0 0 1 0 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 0 1 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0 8 0 1 8 1 0 8 0 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 0 1 8 0 0 8 0 1 8 0 0 8 0 1 8 1 0 8 0 0 8 0 1 8 1 1 8 0 0 8 0 1 8 0 0 8 0 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 0 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 A
7 0 1 7 0 0 7 B
7 0 1 8 0 0 8 B
8 B
9 1 1 10 0 1 10 1 0 10 1 1 10 0 0 10 1 0 10 1 1 10 1 0 10 1 1 10 1 0 10 1 1 10 0 1 10 0 0 10 0 1 10 1 0 10 0 0 10 B
10 1 1 11 1 0 11 1 1 11 0 1 11 0 0 11 1 0 11 A
10 0 1 10 0 0 10 0 1 10 0 0 10 1 1 10 1 0 10 1 1 10 0 1 10 1 0 10 1 1 10 1 0 10 0 0 10 1 1 10 0 1 10 0 0 10 0 1 10 1 0 10 0 0 10 1 1 10 1 0 10 0 1 10 0 0 10 A
9 1 1 9 1 0 9 A
8 B
8 0 1 9 0 0 9 B
9 1 1 10 1 0 10 A
9 B
9 B
10 1 1 11 1 0 11 1 1 11 1 0 11 1 1 11 0 1 11 0 0 11 0 1 11 1 0 11 0 0 11 0 1 11 0 0 11 B
11 1 1 12 1 0 12 1 1 12 1 0 12 1 1 12 1 0 12 0 1 12 1 1 12 0 0 12 0 1 12 1 0 12 0 0 12 0 1 12 1 1 12 1 0 12 0 0 12 B
12 1 1 13 0 1 13 1 0 13 1 1 13 1 0 13 0 0 13 B
13 A
12 0 1 12 1 1 12 0 0 12 0 1 12 0 0 12 0 1 12 0 0 12 1 0 12 1 1 12 1 0 12 1 1 12 1 0 12 A
11 0 1 11 0 0 11 0 1 11 1 1 11 1 0 11 1 1 11 1 0 11 1 1 11 0 0 11 1 0 11

---------- Post updated at 02:48 PM ---------- Previous update was at 02:48 PM ----------

Here are stats using the output of my resilts for 31st (B=28, A=16) as you can see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0 0 8 0 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 0 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 1 1 8 1 0 8 A
7 0 1 7 0 0 7 B
7 0 1 8 0 0 8 B
8 B
9 1 1 10 0 1 10 1 0 10 1 1 10 0 0 10 1 0 10 1 1 10 1 0 10 1 1 10 1 0 10 1 1 10 0 1 10 0 0 10 0 1 10 1 0 10 0 0 10 B
10 1 1 11 1 0 11 1 1 11 0 1 11 0 0 11 1 0 11 A
10 0 1 10 0 0 10 0 1 10 0 0 10 1 1 10 1 0 10 1 1 10 0 1 10 1 0 10 1 1 10 1 0 10 0 0 10 1 1 10 0 1 10 0 0 10 0 1 10 1 0 10 0 0 10 1 1 10 1 0 10 0 1 10 0 0 10 A
9 1 1 9 1 0 9 A
8 B
8 0 1 9 0 0 9 B
9 1 1 10 1 0 10 A
9 B
9 B
10 1 1 11 1 0 11 1 1 11 1 0 11 1 1 11 0 1 11 0 0 11 0 1 11 1 0 11 0 0 11 0 1 11 0 0 11 B
11 1 1 12 1 0 12 1 1 12 1 0 12 1 1 12 1 0 12 0 1 12 1 1 12 0 0 12 0 1 12 1 0 12 0 0 12 0 1 12 1 1 12 1 0 12 0 0 12 B
12 1 1 13 0 1 13 1 0 13 1 1 13 1 0 13 0 0 13 B
13 A
12 0 1 12 1 1 12 0 0 12 0 1 12 0 0 12 0 1 12 0 0 12 1 0 12 1 1 12 1 0 12 1 1 12 1 0 12 A
11 0 1 11 0 0 11 0 1 11 1 1 11 1 0 11 1 1 11 1 0 11 1 1 11 0 0 11 1 0 11

---------- Post updated at 03:01 PM ---------- Previous update was at 02:48 PM ----------

see this file
http://dl.dropbox.com/u/21773719/LogFile4.CSV
Smilie

---------- Post updated at 04:13 PM ---------- Previous update was at 03:01 PM ----------

sorry about the mess of text there I didnt realize the format would not stay as columns.
 

9 More Discussions You Might Find Interesting

1. HP-UX

IO by Process/program

HI there, I'm trying to find a way of showing the IO's performed by individual programs. Number of reads/writes IO time that kind of thing. Anybody know of any way to show this information. Free little downloads that kind of thing? Cheers Phil (2 Replies)
Discussion started by: cpiuk
2 Replies

2. HP-UX

get program name give a process id

Hi , I have query regarding to get a program name given a pid in HP-Ux . give procees id ( PID) i would like to retrieve the process/program through a C program ? my input to c program will be will be pid and i would like to know what is process name /program name . Many Thanks ... (1 Reply)
Discussion started by: naren_chella
1 Replies

3. Programming

Getting process info in a program

Hi, I am wondering if there is a way to find out in a C software program if a particular process is running without having to write a file. In the past, I have been using the system command to execute a pgrep and output the info to a file. Then the C program reads the file to make the... (1 Reply)
Discussion started by: herbmiller
1 Replies

4. Programming

How to start a process in linux using C program??

I have a set of attributes such as group id,group name,etc related to a linux process. Iwant to know how to start a process in linux using C program.Plz do help me. (3 Replies)
Discussion started by: vigneshinbox
3 Replies

5. Programming

Process creation in Unix with C Program

Hi, can somebody please help me regarding this? How can i print parent's PID from child's and vice versa. I have tried with getpid() & ngetppid() function but it is not giving me the correct data. The logic i used is: if (pid == 0) { getpid() : Chil'd PID getppid():... (1 Reply)
Discussion started by: dsudipta
1 Replies

6. UNIX for Dummies Questions & Answers

defunct process occuring in a particular program

All, I am getting a wired scenario, Not all times but some times i am getting the defunct process for a program. If i rerun the same program it is working fine.This defunct scenario is not occuring often. And this is happening only for the one program in my system that to sometimes Can you... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

7. Shell Programming and Scripting

dont have a clue again- flying bat data new logger

hi, this is related to this thread https://www.unix.com/shell-programming-scripting/154822-dont-have-clue-program-use-process-flying-bat-data.html using another type of logger (ipcas ipether232) which produces csv data but not seperated into differnt folders. I need to work out how to get... (2 Replies)
Discussion started by: cmp260
2 Replies

8. Shell Programming and Scripting

How can I get parent process program name?

Hi: I have 2 script on AIX server. The child script is called by parent script. For example: The parent script full name is /home/op/def/parent.spt, which calls /home/op/abc/child.spt I want to get the parent program name with full path name (i.e. /home/op/def/parent.spt), in... (3 Replies)
Discussion started by: cstsang
3 Replies

9. Shell Programming and Scripting

I dont want to exit the program by ctrl + c

Hey , guys I am new to shell programing ,, so need a help from you guys ... I have to write a shell script that accepts file name or directory name from the user if it is a directory then throw an error if it is a file then give the user two options . 1.overwrite the content 2.append the... (2 Replies)
Discussion started by: coolashu
2 Replies
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy