> > Hi > > it seems that I have no luck at the moment. > > Now the post tangle hook does not seem to be called. > It is called, however the shell script you are trying to execute is not executing because it is not set as executable. The permissions of tangled files are set *after* the post-tangle hook is called (so that the post-tangle hook has a chance to modify files which will eventually be set to read only). You example is trying to run a tangled shell script before it is set to be executable. This can not work. My attached alternative of your example does run the shell script by not assuming it is executable.