Sponsored Content
Full Discussion: HELP !! script not working..
Top Forums Shell Programming and Scripting HELP !! script not working.. Post 302576883 by nrjrasaxena on Sunday 27th of November 2011 09:29:17 AM
Old 11-27-2011
Hi,
Here is the section of one of the input file:
Code:
Error in <TTree::SetBranchStatus>: unknown branch -> genndau
Error in <TTree::SetBranchStatus>: unknown branch -> gennmoth
ntot = 208190
ev_passjson = 208190
ev_goodvtx = 208189
wp85ev = 6021
phoidev= 15
invev = 14
hltev = 14
=======using photon counter ======
tot pho is                 = 12680
nomatch pho is             = 595
phoeta pho is              = 539
nospike_counter is         = 539
et cut passed pho          = 0
ecal cut passed pho        = 0
hcal cut passed pho        = 282
trk cut passed pho         = 106
sieie cut passed pho       = 155

thnaks
pooja.

---------- Post updated at 09:29 AM ---------- Previous update was at 09:21 AM ----------

Hi,
I just faced a problem, I found that finalLOG is having some column showing 0 entries. Which means that log file has the 0 entries.
As there are 60 input files, will it be possible that input file information be written in the top column of finalLOG file.
So that I can trace which log file is having null entries.

If possible? please do the necessary changes.
** using working script.

thanks
pooja.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script not working..."sort" not working properly....

Hello all, I have a file - 12.txt cat 12.txt =============================================== Number of executions = 2 Total execution time (sec.ms) = 0.009883 Number of executions = 8 Total execution time (sec.ms) = 0.001270 Number of... (23 Replies)
Discussion started by: Rahulpict
23 Replies

2. Shell Programming and Scripting

Perl script 'system' linking to local shell script not working

Trying to figure out why this works: printpwd.pl #!/usr/bin/perl use CGI::Carp qw( fatalsToBrowser ); print "Content-type: text/html\n\n"; $A = system("pwd"); $A = `pwd`; print "$A\n"; ^^actually that works/breaks if that makes any sense.. i get the working directory twice but when... (5 Replies)
Discussion started by: phpfreak
5 Replies

3. UNIX for Dummies Questions & Answers

script not working

hi guys im new to unix and what to get this script working the scripts purpose its purpose is to move files i copy it from a HP UX pdf just for practice but when i execute it comes up wit this error command not found on the line if plz help me and thank in advance to those who do ps im... (3 Replies)
Discussion started by: ShinTec
3 Replies

4. Shell Programming and Scripting

Script is not working from cron while working manually

Hello, I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me 1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies

5. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

6. Shell Programming and Scripting

expect script inside shell script not working.

Shell Scipt: temp.sh su - <$username> expect pass.exp Expect script: pass.exp #!/usr/bin/expect -f # Login ####################### expect "Password: " send "<$password>\r" it comes up with Password: but doesnt take password passed throguh file. (2 Replies)
Discussion started by: bhavesh.sapra
2 Replies

7. UNIX for Dummies Questions & Answers

My script is not working

Hi All, I am trying to calculate the total_amount based on two key fields. Here is the script. I am new to unix. So please help me to find out the error in this script. I'm getting error like "command not found" and ]; is missing.. PRE_LBNO=0 PRE_DATE=0 TOT_PAY=0 for line in `cat... (4 Replies)
Discussion started by: lathanandhini
4 Replies

8. Shell Programming and Scripting

Script not working

Hi i have write the one scripts and the scripts is error. The scripts purpose select one directory to check the file is there or not. i will give the two format of file to search the mention the path one file is there to select the file one copy the another location.please check the my script give... (1 Reply)
Discussion started by: rajivgandhi
1 Replies

9. UNIX for Beginners Questions & Answers

Why is this script not working?

for file in $(find /home/p611568/*.rpt -mtime -2 | grep -v ftplog) do awk '$1 == "XifPages," {PAGE = $5} $1 == "XifEndOfDocuments," {LINE = $5} index($0,"Value") && index($1,"Info") {sevGTI = 1} END {if (sevGTI) printf "%7s%10s%s",PAGE,LINE ... (4 Replies)
Discussion started by: bcarosi
4 Replies

10. Shell Programming and Scripting

Help with speeding up my working script to take less time - how to use more CPU usage for a script

Hello experts, we have input files with 700K lines each (one generated for every hour). and we need to convert them as below and move them to another directory once. Sample INPUT:- # cat test1 1559205600000,8474,NormalizedPortInfo,PctDiscards,0.0,Interface,BG-CTA-AX1.test.com,Vl111... (7 Replies)
Discussion started by: prvnrk
7 Replies
Config::Scoped::Error(3pm)				User Contributed Perl Documentation				Config::Scoped::Error(3pm)

NAME
Config:Scoped::Error - an exception class hierarchy based on Error.pm for Config::Scoped SYNOPSIS
use Config::Scoped::Error; Config::Scoped::Error::Parse->throw( -text => $parser_error, -file => $config_file, -line => $thisline, ); Config::Scoped::Error::IO->throw( -text => "can't open file: $!", -file => $config_file, -line => $thisline, ); Config::Scoped::Error::Validate::Macro->throw( -text => "macro redefinition: $macro_name", -file => $config_file, -line => $thisline, ); DESCRIPTION
Config::Scoped::Error is a class hierarchy based on Error.pm. The following Exception class hierarchy is defined: Config::Scoped::Error Config::Scoped::Error::Parse Config::Scoped::Error::Validate Config::Scoped::Error::Validate::Macro Config::Scoped::Error::Validate::Parameter Config::Scoped::Error::Validate::Declaration Config::Scoped::Error::Validate::Permissions Config::Scoped::Error::IO SEE ALSO
Config::Scoped, Error AUTHOR
Karl Gaissmaier <karl.gaissmaier at uni-ulm.de> COPYRIGHT AND LICENSE
Copyright (c) 2004-2008 by Karl Gaissmaier This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-16 Config::Scoped::Error(3pm)
All times are GMT -4. The time now is 11:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy