Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run sql files with pause

Status
Not open for further replies.

zircon06

Technical User
Jan 8, 2007
81
I have shell script with bunch of sql file need to each with pause for each file. Each bascially idea in this way

@/u01/test/statement.sql

pause Press RETURN to continue...

@/u01/test/account.sql

pause Press RETURN to continue...

@/u01/testdetails.sql

Anyone guide me to run these in right way by giving pause for each sql file.

Thanks in advance
 
You can pause in most shells with:
Code:
echo "Press RETURN to continue..."
read junk
Here "junk" is just a variable to store the input in case you want to use it, and isn't necessary in most (maybe all) shells.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top