Sponsored Content
Top Forums Shell Programming and Scripting awk output yields error: awk:can't open job_name (Autosys) Post 302934491 by alexcol on Saturday 7th of February 2015 10:04:21 PM
Old 02-07-2015
Thanks for your support, but ive got some questions:

1st /^$/ {next} before the HD ~ $1
would it be this way:?
/^$/ {next} HD ~ $1
what are we tryng to do with this line?

2nd try modifying / commenting out script lines around line 5
would it be commenting out lines 4 and 6?
what are we trying to do ? debug every line to trap the error ?

3rd dont konw about awk arrays and before i get documented and have a deeper knowledge, could u please explain to me a little bit about code lines ?
with your explanation i would have a better perspective to debug error i think

Thanks for your support again
Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

scripting/awk help : awk sum output is not comming in regular format. Pls advise.

Hi Experts, I am adding a column of numbers with awk , however not getting correct output: # awk '{sum+=$1} END {print sum}' datafile 2.15291e+06 How can I getthe output like : 2152910 Thank you.. # awk '{sum+=$1} END {print sum}' datafile 2.15079e+06 (3 Replies)
Discussion started by: rveri
3 Replies

2. Shell Programming and Scripting

Parse file using awk and work in awk output

hi guys, i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00 MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00 this the file raw format: Number of... (6 Replies)
Discussion started by: dagigg
6 Replies

3. Shell Programming and Scripting

help on awk---- need to assign the output of awk to a variable

hi i want to find the size of a folder and assign it to a variable and then compare if it is greater than 1 gb. i am doin this script, but it is throwing error.... #!/bin/ksh cd . | du -s | size = awk '{print $1}' if size >= 112000 then echo size high fi ERROR : (4 Replies)
Discussion started by: Nithz
4 Replies

4. Shell Programming and Scripting

awk output error while loop through array

Have built this script, the output is what I needed, but NR 6 is omitted. Why? Is it an error? I am using Gawk. '{nr=$2;f = $1} END{for (i=1;i<=f;i++) if (nr != i) print i, nr }' input1.csv >output1.csvinput1.csv 1 9 3 5 4 1 7 6 8 5 10 6 output1.csv > with the missing line number 6. 6 is... (5 Replies)
Discussion started by: sdf
5 Replies

5. Shell Programming and Scripting

Using awk with autosys autorep

Hi, How to get correct field/column from autosys autorep command. I'm using GNU/Linux I'm trying to get the difference of last end and last start and the status (ST). In awk, i get the following excluding the heading part $1 - jobname $2 - Last Start date $3 - Last Start time $4 - Last... (1 Reply)
Discussion started by: bobbygsk
1 Replies

6. Shell Programming and Scripting

awk - Parsing Autosys JIL

I'm trying to modify the script given in post 7 of the following thread: 146564-need-parse-jil-file-into-excel-file.html. (Sorry, can't post the URL as I don't have enough posts.) The original script is as follows: awk -F ' *_]*: *' 'BEGIN ... (9 Replies)
Discussion started by: GnuScripter
9 Replies

7. Shell Programming and Scripting

awk question : system output to awk variable.

Hi Experts, I am trying to get system output to capture inside awk , but not working: Please advise if this is possible : I am trying something like this but not working, the output is coming wrong: echo "" | awk '{d=system ("date") ; print "Current date is:" , d }' Thanks, (5 Replies)
Discussion started by: rveri
5 Replies

8. Shell Programming and Scripting

Awk: can't open error

Hi , In a directory i've the files in the following format pay:year:mon:11789604 pay:year:mon:17675644 --- and i need to get 4th part of the above file name so i used awk command in the below code #!/bin/ksh for test_data in pay* do txt_awk = awk -F':' '{print $4;}' $test_data ... (7 Replies)
Discussion started by: smile689
7 Replies

9. Shell Programming and Scripting

Awk: Print Error While Redirecting output in multiple Files

Hi, I have a following code in which I am unable to redirect to multiple files. Can anybody please help with some corrections awk -F, '{ if ( substr($1,26,2)=="02" && substr($1,184,14)=="MTSCC_VALFIRST") { array1++ array2++ array3++ } else if (substr($1,26,2)=="03" &&... (4 Replies)
Discussion started by: siramitsharma
4 Replies

10. Shell Programming and Scripting

awk runs and produces output but with error

When I run the awk below, I get an error message awk -v OFS='\t' '$(NF-1)=="Benign" || ($(NF-2) OFS $(NF-1))=="Likely Benign" {$(NF)=$(NF-2) OFS $(NF-1)} {print $0 }' input awk: cmd. line:1: (FILENAME=VUS FNR=8) fatal: attempt to access field -1 input Chr Start End Ref ... (6 Replies)
Discussion started by: cmccabe
6 Replies
Catalyst::Plugin::StackTrace(3pm)			User Contributed Perl Documentation			 Catalyst::Plugin::StackTrace(3pm)

NAME
Catalyst::Plugin::StackTrace - Display a stack trace on the debug screen SYNOPSIS
use Catalyst qw/-Debug StackTrace/; DESCRIPTION
This plugin will enhance the standard Catalyst debug screen by including a stack trace of your appliation up to the point where the error occurred. Each stack frame is displayed along with the package name, line number, file name, and code context surrounding the line number. This plugin is only active in -Debug mode by default, but can be enabled by setting the "enable" config option. CONFIGURATION
Configuration is optional and is specified in MyApp->config->{stacktrace}. enable Allows you forcibly enable or disalbe this plugin, ignoring the current debug setting. If this option is defined, its value will be used. context The number of context lines of code to display on either side of the stack frame line. Defaults to 3. reverse By default, the stack frames are shown in from "top" to "bottom" (newest to oldest). Enabling this option reverses the stack frames so they will be displayed "bottom" to "top", or from the callers perspective. verbose This option sets the amount of stack frames you want to see in the stack trace. It defaults to 0, meaning only frames from your application's namespace are shown. You can use levels 1 and 2 for deeper debugging. If set to 1, the stack trace will include frames from packages outside of your application's namespace, but not from most of the Catalyst internals. Packages ignored at this level include: Catalyst Catalyst::Action Catalyst::Base Catalyst::Dispatcher Catalyst::Engine::* Catalyst::Plugin::StackTrace Catalyst::Plugin::Static::Simple NEXT main If set to 2, the stack trace will include frames from everything except this module. INTERNAL METHODS
The following methods are extended by this plugin. execute In execute, we create a local die handler to generate the stack trace. finalize_error In finalize_error, we inject the stack trace HTML into the debug screen below the error message. setup SEE ALSO
Catalyst AUTHORS
Andy Grundman, <andy@hybridized.org> Matt S. Trout, <mst@shadowcatsystems.co.uk> THANKS
The authors of CGI::Application::Plugin::DebugScreen, from which a lot of code was used. COPYRIGHT
Copyright (c) 2005 - 2009 the Catalyst::Plugin::StackTrace "AUTHORS" as listed above. LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2009-10-18 Catalyst::Plugin::StackTrace(3pm)
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy