![]() |
|
|
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 |
| awk and execute app | tyger52 | Shell Programming and Scripting | 0 | 12-06-2007 09:43 PM |
| script execute or no execute | Kespinoza97 | Shell Programming and Scripting | 4 | 06-23-2007 10:27 AM |
| How can I do a rexec to execute un C exe ? | Lika | Shell Programming and Scripting | 4 | 02-22-2007 10:17 AM |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 05:42 PM |
| Can't execute a script | ssmiths001 | Shell Programming and Scripting | 3 | 06-02-2006 06:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
execute
Hi All
I have a file containing the following information SOURCESERVER DESTINATIONSERVER DESTINATIONENVIRONMENT CONDITION I was trying to read and then execute the conditions,like if SOURCESERVER is XXXX0001 and the DESTINATIONSERVER is XXXX0002 and the DESTINATIONENV is YYY the conditions: 1 or 2 or 3. can you guys pls tell me as how to proceed as i used the following code and its not working exec 1 <filename.txt while read -u1 SCRSERV DESTSERV DESTENV CONDITION do echo $SCRSERV $ DESTSERV $ DESTENV $ CONDITION done |
|
||||
|
help reg tthe script
Quote:
thnks for the code,i think i didn't explain you guys my problem.The problem is i cannot hardcode it,it must be generic and see the example below: ENV1|XXXX.c01.company.com (ENV2)|3 the frst field is the source environment,the second field is the destinationserver name and the (ENV2) is the destination environment and the third field #3 indicates the condition: 1=standard path 2=alternate path 3=prohibited path so,i have 7 environments,so the code must be generic and not specifc to any single environment,hopefully you guys got it. thnks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|