![]() |
|
|
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 |
| Execute output lines | shantanuo | Shell Programming and Scripting | 3 | 03-12-2009 08:01 AM |
| Execute command created from sql output | Arkadiusz Masny | Shell Programming and Scripting | 1 | 09-26-2008 04:56 AM |
| Compare lines and execute | ntenz | Shell Programming and Scripting | 2 | 07-08-2008 03:45 AM |
| Execute the Output | kousikan | Shell Programming and Scripting | 2 | 03-21-2007 02:07 PM |
| output and execute | gammaman | UNIX for Dummies Questions & Answers | 2 | 06-30-2005 11:12 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Execute the Output Lines.
Hi, My Script looks like this
#! /bin/ksh cd /usr/SrcFiles/ADD; while read line do d=`echo $line|cut -d'.' -f1` echo $d".XML" >> XML_File_List.txt out=`echo "gunzip -c -S .ZIP $d.ZIP > $d.XML;"` echo $out per=`echo "chmod ugo+rwx $d.XML;"` echo $per done <ZIP_File_List.txt and the output : gunzip -c -S .ZIP DW_PDT_090607170009.ZIP > DW_PDT_090607170009.XML; chmod ugo+rwx DW_PDT_090607170009.XML; gunzip -c -S .ZIP DW_PDT_090608010008.ZIP > DW_PDT_090608010008.XML; chmod ugo+rwx DW_PDT_090608010008.XML; gunzip -c -S .ZIP DW_PDT_090608010019.ZIP > DW_PDT_090608010019.XML; chmod ugo+rwx DW_PDT_090608010019.XML; gunzip -c -S .ZIP DW_PDT_090608090015.ZIP > DW_PDT_090608090015.XML; chmod ugo+rwx DW_PDT_090608090015.XML; My problem is i want to execute the output lines.How can i do that . Any help appreciated ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|