opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-tar@gnu.org 20 June 2009 • 2:39AM -0400

Re: [Help-tar] Problems with --info-script
by Sergey Poznyakoff

REPLY TO AUTHOR
 
REPLY TO GROUP




Andreas Rehmer <rehmer@telt...> 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





Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.