ok, you should only need to exit the parent of the fork succeeds, in fact.
looks like your second exit is exiting the child prematurely

> -----Original Message-----
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:48 AM
> To: [EMAIL PROTECTED]
> Subject: RE: fork exitting sub
> 
> 
> James,
> 
>     The script is too long.  I fork because I tar thru ssh which uses
> memory.  So that server I am on doesn't go done because of memory
> consumption I fork each tar so when the fork dies the memory is freed
> for the system..
> 
>     I really think I have issues with my exit 's..  I am 
> going to remove
> an exit I think it might work.
> 
> 
> Thanks for the help......
> 
> chad
> 
> On Thu, 2002-09-26 at 10:33, Kipp, James wrote:
> > > 
> > > James,
> > > 
> > >    I an tarring up different directories.  Directories 
> that may be in
> > > home or maybe in another location.  The directories in 
> home are @users
> > > and the directories in another location are @otherusrs.  
> The thing is
> > > the directories in the other location might not exist.  
> > >     I read that before forking another process you should 
> wait a few
> > > before forking a new one..
> > > 
> > 
> > Is forking neccessary? Why not just check for the existence 
> of the directory
> > and tar it up. 
> > can you post the complete script?
> > 
> > 
> > 
> > 
> > -- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> -- 
> Chad Kellerman
> Jr. Systems Administrator
> Alabanza Inc
> 410-234-3305
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to