← Back to team overview

hugin-devs team mailing list archive

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

 

You have been subscribed to a public bug:

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

** Affects: hugin
     Importance: Undecided
         Status: New

-- 
Feature request: nona take script from stdin
https://bugs.launchpad.net/bugs/1039222
You received this bug notification because you are a member of Hugin Developers, which is subscribed to Hugin.