![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running UNIX Commands from C | zainab | High Level Programming | 2 | 04-15-2008 12:35 AM |
| Problem in running bash shell commands on HP-UX machine | abhishek0071 | UNIX for Advanced & Expert Users | 6 | 02-15-2008 03:30 PM |
| calling plsql function in a unix script | cobroraj | UNIX for Advanced & Expert Users | 2 | 10-29-2007 11:06 PM |
| Running UNIX commands remotely in Windows box from Unix box – avoid entering password | D.kalpana | UNIX for Dummies Questions & Answers | 1 | 04-20-2007 06:24 AM |
| running commands from script | owijust | Shell Programming and Scripting | 2 | 01-09-2006 06:12 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem running plsql & unix commands in 1 script
Hi, I need help again. When I run this shell script, it only runs the unld_date.sql piece and exits. How can I structure this to run all the way to the end? When I don't have the unld_date.sql piece in here, everything runs fine from the date compare piece all the way to the end. Thanks in advance.
#!/bin/sh # sqlplus -s <<EOF username/password @/dir1/unld_date.sql > /dir2/dt_file.dat exit 0 # dt=`cat dt_file.dat` today_dt=`date +%m%d%Y` if [ "$dt" = "$today_dt" ] then # # run pl/sql procedures 1 and 2 sqlplus -s <<EOF username/username @/dir3/code1.prc > /dir4/code1.log @/dir3/code2.prc > /dir4/code2.log exit EOF # tail -10 /dir4/code1.log > log1.txt tail -10 /dir4/code2.log > log2.txt # exit |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|