External Email - Use Caution        


The output shows the command running on Ubuntu 18 linux and getting an error from the shell for a bad file descriptor (fd),
Linux holowach 5.3.0-53-generic #47~18.04.1-ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x85_64 x86_64 GNU/Linux
sh: 1: Syntax error: Bad fd number
That could be an issue with the shell on Ubuntu.   On Ubuntu the default “sh” in PATH,

$ which sh
/bin/sh

- is usually a soft link to the minimal “dash” shell and not a more complete shell like the “bash” shell.

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jan 3  2020 /bin/sh -> dash*

I would try using the bash shell, e.g.., type “bash” in your terminal window and then run the command that produced the error,

$ bash
yourhostname[0]:~$
… run your command ...

If that fixes the issue, you might consider changing the /bin/sh link to point to bash instead of dash.  But you will need sudo/root privileges to do that, e.g.,

$ cd /bin
$ sudo rm sh
$ sudo ln -s bash sh

- R.

On Jan 18, 2023, at 14:36, Alexopoulos, Dimitrios <dimitriosalexopoulos@wustl.edu> wrote: