![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|