2009/1/22 David SANCHEZ <david.sanchez_at_iutbeziers.fr>:
> Hi,
>
> I'm working on a post-commit hook script, but I have a problem.
>
> To resume the script, it takes the filename of the last commit, and send
> it to an other script, who will make a scp transfer to an appliance.
>
> But when I make the commit with the client, I have this message :
>
> user_at_computer_client:~/depot_local/red_interne$ svn commit -m "test 5"
> Envoi fichier1
> Transmission des données .
> Révision 80 propagée.
> Attention : post-commit hook failed (exit code 126) with output:
> [Error output could not be translated from the native locale to UTF-8.]
>
> This is the post-commit script :
>
> #!/bin/sh
> LANG="en_US.UTF-8"
> REPOS='/var/subversion/red_interne'
> SVNLOOK="/usr/bin/svnlook diff $REPOS"
> GREP="/bin/grep -Eo \"Modified:.*$\""
> SED="/bin/sed 's/Modified:\ //'"
> FICHIER="$SVNLOOK | $GREP | $SED"
> RESULTAT=`eval $FICHIER`
> /usr/bin/ssh projet_at_localhost
> /var/subversion/red_interne/hooks/script.sh $RESULTAT
>
> Thanks for any help
>
> Attention : post-commit hook failed (exit code 126) with output: (...)
POSIX specifies that exit code 126 in a standard shell means that
a command name is found, but it is not an executable utility.
Check, whether the the user running the postcommit hook has
execute rights on the script.sh script or any script files called
by it.
Best regards,
Konstantin Kolinko
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1043389
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-22 18:59:00 CET