xanguera / BeamformIt

BeamformIt acoustic beamforming software
353 stars 111 forks source link

unknown operand when reading wav files #26

Closed Ryuk17 closed 4 years ago

Ryuk17 commented 4 years ago

when i run the do_beamforming.sh with sh do_beamforming.sh data test, it shows the following message: sh: data/20G_20GO010I_STR.CH1.wav: unknown operand sh: data/20G_20GO010I_STR.CH2.wav: unknown operand sh: data/20G_20GO010I_STR.CH3.wav: unknown operand sh: data/20G_20GO010I_STR.CH4.wav: unknown operand sh: data/20G_20GO010I_STR.CH5.wav: unknown operand sh: data/20G_20GO010I_STR.CH6.wav: unknown operand and Opening the input channels Extracting channel information for show test [ERROR]: No information on showID test was found in channels file ./output/test/channels_file

The programm has no output and I have no idea about the channels_file, could you solve my problem?

xanguera commented 4 years ago

Try running it with /bin/bash and pass it the full path of the directory.

On Mon, 28 Sep 2020 at 10:08, Ryuk notifications@github.com wrote:

when i run the do_beamforming.sh with sh do_beamforming.sh data test, it shows the following message: sh: data/20G_20GO010I_STR.CH1.wav: unknown operand sh: data/20G_20GO010I_STR.CH2.wav: unknown operand sh: data/20G_20GO010I_STR.CH3.wav: unknown operand sh: data/20G_20GO010I_STR.CH4.wav: unknown operand sh: data/20G_20GO010I_STR.CH5.wav: unknown operand sh: data/20G_20GO010I_STR.CH6.wav: unknown operand and Opening the input channels Extracting channel information for show test [ERROR]: No information on showID test was found in channels file ./output/test/channels_file

The programm has no output and I have no idea about the channels_file, could you solve my problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xanguera/BeamformIt/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACITV7BKK7DVB7QWG7GPF5DSIBHATANCNFSM4R4H6N4A .

Ryuk17 commented 4 years ago

Try running it with /bin/bash and pass it the full path of the directory. On Mon, 28 Sep 2020 at 10:08, Ryuk @.***> wrote: when i run the do_beamforming.sh with sh do_beamforming.sh data test, it shows the following message: sh: data/20G_20GO010I_STR.CH1.wav: unknown operand sh: data/20G_20GO010I_STR.CH2.wav: unknown operand sh: data/20G_20GO010I_STR.CH3.wav: unknown operand sh: data/20G_20GO010I_STR.CH4.wav: unknown operand sh: data/20G_20GO010I_STR.CH5.wav: unknown operand sh: data/20G_20GO010I_STR.CH6.wav: unknown operand and Opening the input channels Extracting channel information for show test [ERROR]: No information on showID test was found in channels file ./output/test/channels_file The programm has no output and I have no idea about the channels_file, could you solve my problem? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#26>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACITV7BKK7DVB7QWG7GPF5DSIBHATANCNFSM4R4H6N4A .

Thanks for your relpy, i solve the problem in arm linux by modify if [ -a ${file} ] to if [ -e ${file} ] in line 22 in do_beamforming.sh and using the full path of the directory

xanguera commented 4 years ago

Good you figured it out!