Rene de Zwart wrote:
>> Andreas Kupries wrote:
>>> See file
>>>     c2f_fossil.tcl

>>      #!/bin/sh
>       echo fossil $* >> /your/log/file
>         rc=`__fossil $*`
>         echo $rc >> /your/log/file
>         echo $rc

Right, the result of the command can be of interest too.
And the $? variable should hold the exit status of the app after the call.

Note. We assumed a basic bourne sh here. If the shell is a bash we can use

        rc=$(__fossil $*)

instead of the backticks. More readable, nestable, better structured.

-- 
Sincerely,
     Andreas Kupries <andr...@activestate.com>
     Developer @    <http://www.activestate.com/>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to