Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: imp timeout

Re: imp timeout

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Wed, 18 Dec 2002 08:02:14 +0200
Message-ID: <atp35e$2es$1@ctb-nnrp2.saix.net>


Tom wrote:

> would an & after my imp syntax solve this do you think to detach it from
> the console?

No. To add to what the others replied...

By default, certain devices are "connected" to an online process. STDIN, STDOUT, STDERR. Also, the process has the shell process as parent. If the parent dies, it usually takes the children with.

When writing Unix daemons for example, you will do a few things in the process.. you will close the standard devices, you will detach yourself from the parent process, and you will even change filesystems (you do not want the daemon to run on a non-root filesystem that can be unmounted at anytime).

When you use the & to enter a batch job, and it does not perform the above mentioned stuff, it is likely to keel over and die when something "unexpected" happens (like you exiting your telnet session).

There are 3 ways around this as the others have already mentioned.

You can use nohup. This will "daemonize" the process for you.

You can use cron.

You can use the at command (which is often easier to use for an adhoc batch jobs than to use cron).

Just remember that bit about the .profile though - cron does not run .profiles for you.

--
Billy
Received on Wed Dec 18 2002 - 00:02:14 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US