Actually, all that proves is that the symlink exists.  The linked-to target 
(/bin/zsh) may not.

If I may be so bold to ask, why are you trying to use zsh for scripts?  Use 
whatever you want for interactive work, but for scripts, especially scripts to 
be run in magical environments like on the grid, what you want to be doing is 
keeping everything as standardized as possible, and that means bash.  There is 
obviously something in the environment that's not what you expect (I'm using 
"environment" in the broader sense to include file system layout, permissions, 
default i/o streams, etc).  You're not even able to capture stdout or stderr to 
someplace you can see it.  This makes debugging extremely difficult.  It's like 
trying to do brain surgery blindfolded and wearing boxing gloves.

I've gone down this rabbit hole before and my advice is to not go there.  Just 
use bash.  Keep everything as simple as possible.


> On Nov 16, 2021, at 10:23 PM, Huji Lee <[email protected]> wrote:
> 
> It shows the "correct" answer, i.e.:
> 
> lrwxrwxrwx 1 root root 8 Dec 18  2019 /usr/bin/zsh -> /bin/zsh
> 
> So zsh is there and accissble on the grid. Still unclear why the scripts 
> would fail on the grid, and why they would fail without outputing anything.
> 
> On Tue, Nov 16, 2021 at 9:43 PM Roy Smith <[email protected] 
> <mailto:[email protected]>> wrote:
> Submit a job that does:
> 
>> ls -l /usr/bin/zsh
> 
> and see what it says.
> 
> 
>> On Nov 16, 2021, at 9:37 PM, Huji Lee <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Is it really that zsh is not available on the grid, and the grid tries to 
>> replicate my environment first and reaches the "exec zsh" command and falls 
>> apart somehow?
> 
> _______________________________________________
> Cloud mailing list -- [email protected] 
> <mailto:[email protected]>
> List information: 
> https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/ 
> <https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/>
> _______________________________________________
> Cloud mailing list -- [email protected]
> List information: 
> https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/

_______________________________________________
Cloud mailing list -- [email protected]
List information: 
https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/

Reply via email to