shell scripting - using a here document in a background job
Steve Flynn
anothermindbomb at gmail.com
Thu Aug 20 16:01:10 UTC 2009
On Thu, Aug 20, 2009 at 4:59 PM, Steve Flynn<anothermindbomb at gmail.com> wrote:
> I have a requirement to kick of a number of background processes from
> within a shell script. It's actually 5 copies of sqlplus to run in
> parallel, each one calling a stored procedure within Oracle with a
> slightly different parameter. For example:
>
> sqlplus ${user}/${password}@${database} & << EOF
> execute table_analyze(${core_user});
> /
> EOF
Typical - send the post and then realise the glaring error. Sorted now.
For info, the call to sqlplus should be:
sqlplus ${user}/${password}@${database} << EOF &
--
Steve
When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
More information about the ubuntu-users
mailing list