[Swift-devel] running bash wrapper rather than shebbanging it

Mihael Hategan hategan at mcs.anl.gov
Fri Dec 26 11:07:53 CST 2008


On Fri, 2008-12-26 at 14:54 +0000, Ben Clifford wrote:
> At present, the wrapper script is launched by explicitly naming bash in 
> the vdl:execute call in vdl-int.k and passing the wrapper script name as a 
> parameter to bash.
> 
> In theory, this should be the same as running the wrapper script directly 
> with a #!/bin/bash as the first line of wrapper.sh
> 
> However, I have a feeling that this second way doesn't work right (eg 
> doesn't always end up with bash and sometimes ends up with the system 
> shell)
> 
> Briefly googling the swift-devel archives doesn't give me anything, though 
> - does any one remember what (if any) the problem with this second 
> approach is?

When copied over using the java gridftp (and possibly other things),
wrapper.sh loses its executable bit. So it becomes not executable. This
could probably be corrected using a chmod, but I don't think that
command is well supported.





More information about the Swift-devel mailing list