Re: lseek with bash

2011-12-11 Thread Dan Douglas
On Friday, December 09, 2011 04:35:11 PM Chet Ramey wrote: > On 12/9/11 10:12 AM, Jean-Jacques Brucker wrote: > > Playing with flock to securely access to a file shared by multiple > > process. I noticed there are no documented way to do an lseek on an > > > opened fd with bash : > [...] >

Re: lseek with bash

2011-12-09 Thread Chet Ramey
On 12/9/11 10:12 AM, Jean-Jacques Brucker wrote: > Playing with flock to securely access to a file shared by multiple > process. I noticed there are no documented way to do an lseek on an > opened fd with bash : [...] > I have solve my problem by making this small binary (i just needed a re

Re: help-bash mailing list (Was: lseek with bash)

2011-12-09 Thread Greg Wooledge
On Fri, Dec 09, 2011 at 04:32:56PM +, Stephane CHAZELAS wrote: > First time I hear about a "help-bash" mailing list. Is that new? Yes, it's new. Announced by Chet on Nov 21: http://www.mail-archive.com/bug-bash@gnu.org/msg10154.html

help-bash mailing list (Was: lseek with bash)

2011-12-09 Thread Stephane CHAZELAS
2011-12-9, 10:27(-05), Greg Wooledge: [...] > This probably belongs on help-bash rather than bug-bash, although it's a > grey area. I'm Cc-ing both. [...] First time I hear about a "help-bash" mailing list. Is that new? I saw no annoucement in bash bug (I could have missed it though), nor does it

Re: lseek with bash

2011-12-09 Thread Greg Wooledge
On Fri, Dec 09, 2011 at 04:12:15PM +0100, Jean-Jacques Brucker wrote: > I have solve my problem by making this small binary (i just needed a rewind) : > > int main(int argc,char * argv[]) { return lseek(atoi(argv[1]),0L,0); } > > But i ll be glad to use a standard and finished tool. That looks p

lseek with bash

2011-12-09 Thread Jean-Jacques Brucker
Playing with flock to securely access to a file shared by multiple process. I noticed there are no documented way to do an lseek on an opened fd with bash : #!/bin/bash exec 18<>/tmp/resource flock 18 # (...) read and analyze the resource file # ?? there is no documented way to seek or rewind in