[PLUG] Initializing Dirvish
chris (fool) mccraw
gently at gmail.com
Sat Dec 12 02:44:57 UTC 2009
that looks like a perl script, and that error message looks to be from
bash. i think the first line should be
#!/usr/bin/perl
but i could be wrong. free to try tho :)
On 12/11/09, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> After setting up the bank and vault, the HOWTO says I need to initialize
> the backups. The script is failing at line 4.
>
> [root at salmo ~]# dirvish --vault salmo.appl-ecosys.com --init
> /usr/local/sbin/dirvish: line 4: syntax error near unexpected token ('
> /usr/local/sbin/dirvish: line 4: $VERSION = ('$Name: Dirvish-1_2_1 $' =~
> /Dirvish/i)'
>
> Here are the first 7 lines of /usr/local/sbin/dirvish:
>
> # $Id: dirvish.pl,v 12.0 2004/02/25 02:42:15 jw Exp $ $Name:
> Dirvish-1_
>
> $VERSION = ('$Name: Dirvish-1_2_1 $' =~ /Dirvish/i)
> ? ('$Name: Dirvish-1_2_1 $' =~ m/^.*:\s+dirvish-(.*)\s*\$$/i)[0]
> : '1.1.2 patch' . ('$Id: dirvish.pl,v 12.0 2004/02/25 02:42:15 jw
> Exp
> =~ m/^.*,v(.*:\d\d)\s.*$/)[0];
> $VERSION =~ s/_/./g;
>
> I appreciate one of you with a working script telling me how to fix that
> line so it works.
>
> TIA,
>
> Rich
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list