Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Substitution Error in run-giza.pl? #148

Open
afader opened this issue Oct 11, 2013 · 3 comments
Open

Process Substitution Error in run-giza.pl? #148

afader opened this issue Oct 11, 2013 · 3 comments

Comments

@afader
Copy link
Contributor

afader commented Oct 11, 2013

This line creates a command to run and stores the value in $__ALIGNMENT_CMD:
https://github.com/joshua-decoder/joshua/blob/master/scripts/training/run-giza.pl#L232

Then the variable is passed as a command line option in this line:
https://github.com/joshua-decoder/joshua/blob/master/scripts/training/run-giza.pl#L265

This breaks on my system (x86_64 linux running bash as a shell). I modified the code to (I think) work on bash.

Here's the changes I made. They probably won't work in other shells that don't have bash's <(blah) subprocess substitution. Also I found that I had to replace the stdout redirection of the command (> output) to a command line option (-o=output) for some reason. I'm not sure what was going on there, either.

Changes here: afader@a754044

@afader
Copy link
Contributor Author

afader commented Oct 12, 2013

Oh now I see that this is happening in giza2bal.pl which can accept a command as input, but for some reason isn't working on my system...

@mjpost
Copy link
Member

mjpost commented Oct 12, 2013

Did you have any luck figuring this out, or is it still giving you trouble? What Linux distribution and bash version are you using?

@afader
Copy link
Contributor Author

afader commented Oct 14, 2013

bash 4.1.2(1)-release
linux Red Hat Enterprise Linux Server release 6.4 (Santiago)

I got the example pipeline to run, but only making those changes in the above files. I'm not really sure what's going on, but I guess that this thread might be helpful for others who have the same issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants