linz / snap

Survey Network Adjustment Package.
Other
8 stars 4 forks source link

perl batch file doesn't run in Linux #85

Open ccrook opened 5 years ago

ccrook commented 5 years ago

A number of utilities in the SNAP packages are implemented as perl scripts which have been converted to DOS batch files for running manually using pl2bat. However this process does not create executable scripts under linux (file mode does not include executable status, script is not headed with #!/.../perl. This means that the scripts cannot be directly run as commands from the command line. This is handled for commands executed from snap_manager menu items as the snap_manager scripts manage this for linux. But it does not work if the commands are executed from the linux command line.

Probably most simply managed by making executable shell scripts named without .bat which run the perl script. Or by a single shell script symbolically linked to the none .bat filename.

mermy commented 5 years ago

command=perl snx2gxbulk.bat snx2gxbulk.bat content=call snx2snap -t 24 input.snx output.gx error=Bareword found where operator expected at snx2gxbulk.bat line 1, near "24 input" (Missing operator before input?)

This ran successfully in DaaS.