For example:
sqlplus -s admin/password << EOF
whenever sqlerror exit sql.sqlcode;
set echo off
set heading off
@pl_script_1.sql
@pl_script_2.sql
exit;
EOF
More Related Contents:
- What does 2>&1 mean here?
- How to reload .bashrc settings without logging out and back in again?
- How do I iterate over a range of numbers defined by variables in Bash?
- Why would a correct shell script give a wrapped/truncated/corrupted error message? [duplicate]
- When do we need curly braces around shell variables?
- Bash command line and input limit
- Replace one substring for another string in shell script
- How to find the difference in days between two dates?
- How to assign the output of a Bash command to a variable? [duplicate]
- Running script upon login in mac OS X [closed]
- Command substitution: backticks or dollar sign / paren enclosed? [duplicate]
- Using the RUN instruction in a Dockerfile with ‘source’ does not work
- Why start a shell command with a backslash?
- How to process each output line in a loop?
- Is there a TRY CATCH command in Bash
- Set a parent shell’s variable from a subshell
- find: missing argument to -exec
- What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)
- How does bash tab completion work?
- Is mixing getopts with positional parameters possible?
- Counting lines or enumerating line numbers so I can loop over them – why is this an anti-pattern?
- Execute command containing quotes from shell variable [duplicate]
- What does “export” do in shell programming? [duplicate]
- What is the most elegant way to remove a path from the $PATH variable in Bash?
- pipe stdout and stderr to two different processes in shell script?
- How can I convert tabs to spaces in every file of a directory?
- How to match a single quote in sed
- How do I integrate MSYS2 shell into Visual studio code on Window?
- Parse HTML using shell
- Renaming files with Bash, removing prefix and suffix