Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: exitcode of fsvs diff

fsvs
Discussion topic

Back to topic list

Re: exitcode of fsvs diff

Author pmarek
Full name P.Marek
Date 2008-06-10 09:53:15 PDT
Message Hello Gunnar!

On Tuesday 10 June 2008 Gunnar Thielebein wrote:
> I have an issue when trying to use fsvs in a simple shell script which
> should check the diff of an local directory and its head-revision and
> mail the output of diff to admin via a cron-job.
>
> In the man-pages and this thread
> (http://thread.gmane.​org/gmane.comp.sysut​ils.backup.fsvs.gene​ral/211/focus=
>217) I have seen that you for some reason doesnt forward the exitcode of
> diff but that I can use the -W flag to override that behaviour.
>
> When I use this command (and there are modifications in fileset):
>
> if sudo fsvs -Wdiff-status=stop diff /;then echo $?;fi
>
> I still get exitcode 0. Is there some error in usage?
No; you're doing nothing wrong.
But for changes "diff" returns a 1, and this is always ignored.
Only the 2 (for binary files) could get checked.

> Do you mind of some other way checking for changes?
I'm currently implementing an option "stop_change" for use in scripts.

Please stand by :-)


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 2 of 9 | Next message in topic »

Messages

Show all messages in topic

exitcode of fsvs diff tekknokrat Gunnar Thielebein 2008-06-10 08:39:06 PDT
     Re: exitcode of fsvs diff pmarek P.Marek 2008-06-10 09:53:15 PDT
         Re: exitcode of fsvs diff pmarek P.Marek 2008-06-10 11:22:16 PDT
             Re: exitcode of fsvs diff tekknokrat Gunnar Thielebein 2008-06-11 15:04:44 PDT
                 Re: exitcode of fsvs diff tekknokrat Gunnar Thielebein 2008-06-16 03:32:47 PDT
                 Re: Re: exitcode of fsvs diff tekknokrat Gunnar Thielebein 2008-06-16 03:39:40 PDT
                     Re: Re: exitcode of fsvs diff pmarek P.Marek 2008-06-16 03:42:22 PDT
                         Re: Re: exitcode of fsvs diff tekknokrat Gunnar Thielebein 2008-09-30 13:38:58 PDT
                             Re: exitcode of fsvs diff pmarek P.Marek 2008-10-01 09:10:39 PDT
Messages per page: