← Back to team overview

hugin-devs team mailing list archive

[Bug 1039222] Re: Feature request: nona take script from stdin

 

** Changed in: hugin
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1039222

Title:
  Feature request: nona take script from stdin

Status in Hugin - Panorama Tools GUI:
  Triaged

Bug description:
  It should be simple to optionally take script from stdin.

  Currently nona requires a pto file to be specified.

  Perhaps using a single dash could indicate stdin as is conventional
  among many programs.

  This is not a workaround:

  nona` -o TIFF_m /dev/stdin

  as demonstrated here:

  
  $ nona -o TIFF_m /dev/stdin <<END
  > v
  > p n"TIFF_m" v90 h1024 w1024
  > i n"~/beach.tif" f4 v360 y0   p0 h6203 w12406
  > END

  ContractViolation: 
  Precondition violation!
  Unable to open file '/dev/~/beach.tif'.
  (/Users/Shared/development/hugin_related/hugin-2011.4.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

  caught exception: 
  Precondition violation!
  Unable to open file '/dev/~/beach.tif'.
  (/Users/Shared/development/hugin_related/hugin-2011.4.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)


  A good solution may be to use a dash to read from stdin like this:
  $ nona -o TIFF_m  -  <<END
  > v
  > p n"TIFF_m" v90 h1024 w1024
  > i n"~/beach.tif" f4 v360 y0   p0 h6203 w12406
  > END

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1039222/+subscriptions