Am 17.07.2014 um 16:22 schrieb Pierre Lindenbaum:

> OK, it seems to be a known bug : I was redirect to that post today:
> 
> https://arc.liv.ac.uk/trac/SGE/ticket/1420?cversion=0&cnum_hist=1
> 
> 
> I'm now trying to set the variable QRSH_WRAPPER
> How does it look like ? Is there any example for shell wrapping this shell ?
> 
> I tried:
> 
> ```
> #!/bin/bash
> export QRSH_WRAPPER

It's just exported. But did you set it to a script or alike beforehand too? The 
error below indicates that it's exported without any content.

-- Reuti


> echo "$*" | sed 's/\\n/ /g'  | /bin/bash
> ```
> 
> but I get
> 
> qrsh_starter: environment variable QRSH_WRAPPER has no value
> Hello
> /bin/sh: \n: command not found
> 
> Thanks,
> 
> Pierre
> 
> 
> 
>> Hi all,
>> 
>> here is something I've observed with our new installation of SGE:
>> 
>> Here is a simple makefile
>> 
>> 
>> ###################
>> 
>> .PHONY:all
>> all:
>>    echo "Hello" && \
>>    cat /dev/zero | tr "\0" "\n" | head -n 1
>> 
>> 
>> ###################
>> 
>> it works fine with std GNU-make  3.81 (and even with SLURM+make 3.81 )
>> 
>> $ make -v
>> GNU Make 3.81
>> Copyright (C) 2006  Free Software Foundation, Inc.
>> 
>> $ make
>> make -f cat.mk
>> echo "Hello" && \
>>     cat /dev/zero | tr "\0" "\n" | head -n 1
>> Hello
>> 
>> #####################
>> But qmake seems to escape the string resulting in "\n: command not found":
>> 
>> $ qmake -cwd -v PATH  -- -j 1 -f cat.mk
>> echo "Hello" && \
>> cat /dev/zero | tr "\0" "\n" | head -n 1
>> dynamic mode
>> Hello
>> /bin/sh: \n: command not found
>> 
>> 
>> $ qmake -v
>> GNU Make 3.82
>> Built for x86_64-unknown-linux-gnu (distributed make
>> load balancing by Grid Engine
>> )
>> 
>> Pierre
>> 
>> 
>> 
> 
> _______________________________________________
> users mailing list
> users@gridengine.org
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to