![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing scripts in Parallel | itsme_maverick | Shell Programming and Scripting | 2 | 06-06-2008 12:23 PM |
| executing scripts by reading names from a file | konark | Shell Programming and Scripting | 3 | 11-08-2007 02:28 AM |
| Variables in scripts | kirkm76 | UNIX for Dummies Questions & Answers | 1 | 06-28-2007 04:47 PM |
| Executing Shell Scripts | BuyoCat | UNIX for Dummies Questions & Answers | 1 | 09-07-2005 02:11 AM |
| executing perl scripts | vtran4270 | UNIX for Advanced & Expert Users | 2 | 08-27-2002 03:28 PM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
executing variables in ksh scripts?
In a ksh script on an AIX box running a jillion oracle database processes, I'm setting a variable to one of two possible arguments, depending on cmd line arguments.
FINDIT="ps -ef | grep oracle | grep DBexport | grep rshrc" -or- FINDIT="ps -ef | grep oracle | grep prod | grep runback" I want to have a way to execute the command list defined by the variable $FINDIT later in the script, putting the result in another variable. Any ideas how? Things I have tried: 1. The straightforward RESULT=`$FINDIT` (I get a usage on ps) 2. Putting the list in braces gives me bad substitution FINDIT=${list} 3. exec is not on the system. With either of the possible values of $FINDIT, if I execute them on the command line, there is no problem. What am I doing wrong? Thanks, -zedmelon |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|