help-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-tar] Problems with --info-script


From: Sergey Poznyakoff
Subject: Re: [Help-tar] Problems with --info-script
Date: Fri, 19 Jun 2009 21:39:56 +0300

Andreas Rehmer <address@hidden> ha escrit:

> i have the following problem. When i send a proccess via the
> info-script into the background like this "ping
> www.google.de &" the info-script ends up as a zombi so tar dont
> recognize corectly that the script is finished.
> any ideas how to fix that?

Obviously, the backgrounded process does not close inherited file
descriptors, therefore the tar communication descriptor remains
open and tar waits forever for input from it.  To avoid that,
close the tar communication descriptor in child process, e.g.:

(eval exec $TAR_FD\<\&-
 ping www.google.de) &

See Tar Manual, subsection 9.6.1 for a detailed description of
info scripts.

Regards,
Sergey


 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]