![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to store the sql query's output in a variable | venkatesh_sasi | Shell Programming and Scripting | 4 | 01-17-2008 09:03 PM |
| store awk results in a variable | forever_49ers | Shell Programming and Scripting | 1 | 09-19-2006 07:51 PM |
| Store output and Echo | meyerder | Shell Programming and Scripting | 2 | 05-14-2006 06:44 AM |
| store output to a file and read from it | afadaghi | Shell Programming and Scripting | 2 | 10-04-2005 09:00 AM |
| How to store output in variable when put in background | sanjay92 | UNIX for Dummies Questions & Answers | 1 | 02-22-2005 11:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
To store the output in a variable
Hi,
I am getting the following error while executing the script. Please can someone throw some light where is the problem. Many thanks. ./check[53]: temp: not found The directory related to SEP instance 4 does not exist. The script is as follows. SEP_APP="/scp/sepx/app /scp/sepx/current/app /scp/sepx/data /scp/sepx/output /scp/sepx/shared /scp/sepx/log /scp/sepx/backup /scp/sepx/install /scp/sepx/dump /scp/sepx/journal /scp/sepx/versions /scp/sepx/oss /scp/sepx/sockets /scp/sepx/support" MAX_SEP_INSTANCE="1 2 3 4" for number in `echo $MAX_SEP_INSTANCE` do echo echo "check the directory structure for SEP instance $number..."; echo for file in $SEP_APP do temp = `echo $file | sed -e "s/\/sepx/\/sep$number/"` if [ ! -d "$temp" ] then echo "The directory $temp related to SEP instance $number does not exist."; echo continue fi done done |
| Forum Sponsor | ||
|
|