[Icecast] Custom Hooks
    Philipp Schafft 
    phschafft at de.loewenfelsen.net
       
    Sat Nov 10 09:54:21 UTC 2018
    
    
  
Good morning,
On Fri, 2018-11-09 at 16:48 +0000, Paul Martin wrote:
> On Fri, Nov 09, 2018 at 11:19:43AM +0000, Philipp Schafft wrote:
> 
> > > pipe=/tmp/testpipe
> > 
> > There are tools to make tempfiles such as mktemp(1). You can also
> > consider using $$.
> 
> > >      mkfifo $pipe
> 
> mktemp makes actual files, not pipes/fifos.
That is true unless -u is given. That just selects a unique name for
you. This is still an unsafe operation but much safer.
You should also consider setting -e or using something like:
        mkfifo "$pipe" || exit 1;
That will at least terminate the script in case the file already exists
and will not write things to it.
With best regards,
-- 
Philipp Schafft (CEO/Geschäftsführer) 
Telephon: +49.3535 490 17 92
Löwenfelsen UG (haftungsbeschränkt)     Registration number:
Bickinger Straße 21                     HRB 12308 CB
04916 Herzberg (Elster)                 VATIN/USt-ID:
Germany                                 DE305133015
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181110/f36aeb88/attachment.sig>
    
    
More information about the Icecast
mailing list