Hi,
Sorry, i'm certainly doing sothing wrong, but i just put the line or foo in 
*.dist; do cp $foo basename $foo .dist; done in a file, i've done the chmod 755 
and run the file, here is the result. :s



administra...@ubuntu10:/opt/otrs/var/cron$ sudo ./test1cp: target `.dist' is 
not a directorycp: target `.dist' is not a directorycp: target `.dist' is not a 
directorycp: target `.dist' is not a directorycp: target `.dist' is not a 
directorycp: target `.dist' is not a directorycp: target `.dist' is not a 
directorycp: target `.dist' is not a directorycp: target `.dist' is not a 
directorycp: target `.dist' is not a directory

> Date: Fri, 25 Jun 2010 15:03:12 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [otrs] Problem configuring cron
> 
> * Trasschaert Karl <[email protected]>:
> > 
> > Hi,
> > I've the same problem:
> > administra...@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp 
> > $foo `basename $foo .dist`; done-bash: syntax error near unexpected token 
> > `do'
> 
> The ; ends the sudo command. Apply quotes or put
> for foo in *.dist; do cp $foo basename $foo .dist; done
> into a file and use:
> 
> chmod 755 file
> sudo ./file
> 
> -- 
> Ralf Hildebrandt
>   Geschäftsbereich IT | Abteilung Netzwerk
>   Charité - Universitätsmedizin Berlin
>   Campus Benjamin Franklin
>   Hindenburgdamm 30 | D-12203 Berlin
>   Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
>   [email protected] | http://www.charite.de
>           
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> 
> NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
> http://www.otrs.com/en/support/enterprise-subscription/
                                          
_________________________________________________________________
Naviguez de façon simple et rapide: téléchargez Internet Explorer 8. 
http://www.microsoft.com/belux/fr/windows/internet-explorer/
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to