The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 03:19 AM
ftp issue ravi raj kumar Shell Programming and Scripting 5 02-06-2008 04:24 AM
Issue with rsh sriram.s AIX 5 07-03-2007 08:37 AM
FTP issue u263066 Shell Programming and Scripting 1 07-28-2006 03:18 AM
FTP Issue, Help please moe2266 UNIX for Dummies Questions & Answers 0 01-17-2006 06:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
Stumble this Post!
awk issue on AIX

Hi,
two teams at two locations - A & B. At location A, we have AIX 5.3 and at location B, we have AIX 5.1. We execute the below awk command in loc A and it executes successfully(part of a larger script). But the same does not get executed in the loc B server.
We are not able to access the loc B server(for all odd reasons). the command is
Code:
time_comjob=$(awk -v var1=$comptd_prog_name -v var2=$end_job_name '$0 ~ var1 {print $0; getline; while ( $6 !~ var2) {print;  getline;} exit 0;}' $prev_logfile |grep -i "$comptd_prog_name.*terminated ok"  |tail -1 |awk '{print $4}')
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-04-2007
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
Stumble this Post!
Red face terrible misunderstanding!!

Sorry guys, the issue we had was a terrible misunderstanding of the requirements. We had written the script based on the requirements given and guys there were testing it for some other condition. This is the first time that I have seen such gross misunderstanding of requirements.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0