The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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 Multiple .SQL Files from Single Shell Script file anushilrai Shell Programming and Scripting 3 04-07-2008 10:09 AM
executing scripts by reading names from a file konark Shell Programming and Scripting 3 11-08-2007 02:28 AM
executing shell file in jva + tomcat jaganadh Shell Programming and Scripting 1 10-20-2007 06:58 PM
Reading a file and writing the file name to a param file. thebeginer UNIX for Advanced & Expert Users 1 10-05-2007 04:38 PM
Executing shell file within another shell file appleforme1415 UNIX for Dummies Questions & Answers 2 06-19-2007 07:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-07-2006
anushilrai anushilrai is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 7
Reading file names from a file and executing the relative file from shell script

Hi
How can i dynamically read files names from a list file and execute them from a single shell script.

Please help its urgent

Thanks in Advance
  #2 (permalink)  
Old 03-07-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
Looks very similiar to your earlier post - Executing Multiple .SQL Files from Single Shell Script file.

See this link - 12 Ways to Parse a file. It shows you how to read contents from a file.
  #3 (permalink)  
Old 03-07-2006
anushilrai anushilrai is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 7
Actually i want to read a name from a list file, append the file extension with that name and then execute that file to create object in database, as the file contains script to create object in database, kindly help me out accordingly. Your help would be very useful for me. plzzzzzzzzz
  #4 (permalink)  
Old 03-07-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
See these posts.
[Oracle] "Dynamic" sql / Shell script
can nested SQl be run in Unix Script?

Use the forum's search feature with the keywords "sql shell script". You will find many a script with varying depth and breadth.
  #5 (permalink)  
Old 03-10-2006
rajiv25 rajiv25 is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 2
try this ..

for execute_file in `cat list_file`
do
./${execute_file}.extension
done

romy
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0