Aman Raheja wrote: > Hi friends > I am doing exec in a foreach loop, resizing images. > But as the the exec is kicked off, it never returns.... What's the > way out? Here's the snippet > ------------------------------------------------------------------- > foreach(@$ref) { > > $imgFile = @$_->[1].jpg; > $thbFile = @$_->[1]-t.jpg; > $convertedSize = @$_->[3]."x".@$_->[4]; > > exec("convert $imgFile -resize $convertedSize $thbFile"); > > } > ---------------------------------------------------------------------- > > The loop executes only once, as the exec forks out and waits > infinitely
exec() doesn't fork, it exec's :~) perldoc -f exec will answer your question. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]