The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing a variables value from the called script to calling script using ksh rajarkumar Shell Programming and Scripting 10 12-23-2008 02:51 AM
calling a script from a level above where the script resides SummitElse UNIX for Advanced & Expert Users 2 10-26-2007 10:27 AM
Box A's perl script calling box B's shell script new2ss Shell Programming and Scripting 1 09-13-2006 07:17 AM
calling dos2unix on shell script from within the script vino Shell Programming and Scripting 4 04-08-2005 04:38 AM
Calling C from within a csh script barisgultekin Shell Programming and Scripting 2 05-24-2002 10:21 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-13-2008
luckybalaji luckybalaji is offline
Registered User
  
 

Join Date: Nov 2007
Location: Singapore
Posts: 7
calling script from awk

Hi,

I'm not sure, there is solution exist for this problem. I'm facing problem in calling a unix script from awk code. Here is code

nawk -F'=' '
BEGIN { }
function runtest(string)
{
LINE
}
/^[.*\]/ { # getting module name
t=$1
module=substr(t,2,(length(t)-2))
runtest(module)
}
/INCLUDE/ {
}
/LEVEL/ {
}
/LOG_LEVEL/ {
}

END {}
' test-suite.cfg

<<<<<<<<<<<<<<>>>>>>>>>>
Content in the test-suite.cfg
[module1]
INCLUDE=Y
LEVELS=BASIC,INTER,ADVANCE
LOG_LEVEL=10
REPROT=module1.log

...
..

<<<<<<<<<<<<<<<<>>>>>>>>>>

In the "LINE", i'm trying to call unix script to start test-suite based on the input arguments such as "module, level, leg_level...".

I tried LINE with following but nothing worked
ATT 1. ./test-suite/module/basic/start.ksh
Error:
context is
>>> ./test-suite/module/basic/start <<< .ksh
nawk: illegal statment at source line 10 in function

Tried with escape for "." also didnt work
ATT 2. test-suite/module/basic/start
Error : nawk division by zero


Basicaly, i want to secute the script based on the input argument and get the test results also.

Kindly help me to resolve this problem.

Thanks and Regards,
Balaji
 

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 On




All times are GMT -4. The time now is 01:08 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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0