Problem configuring cron

Hi, regarding the doc, i'm configuring the cron jobhttp://wiki.otrs.org/index.php?title=Installation_on_Debian_5.04_lenny I have this error: administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done # copies all files with .dist extension to regular name-bash: syntax error near unexpected token `do' Could anyone help me to configure that ? Thx Karl _________________________________________________________________ Internet Explorer 8: le navigateur le plus utilisé au monde. http://www.microsoft.com/belux/fr/windows/internet-explorer/

I've find, i had to inster the command in a ila and do a bash "the file" Now, i've a problem with the cron: administrator@ubuntu10:/opt/otrs$ bin/Cron.sh start otrsRun this script just as OTRS user! Or use 'Cron.sh {start|stop|restart} OTRS_USER' as root!administrator@ubuntu10:/opt/otrs$ sudo bin/Cron.sh start otrs/opt/otrsCron.sh - start/stop OTRS cronjobs - <$Revision: 1.19 $>Copyright (C) 2001-2009 OTRS AG, http://otrs.org/"/opt/otrs/var/tmp/otrs-cron-tmp.19995":125: bad minuteerrors in crontab file, can't install.failedadministrator@ubuntu10:/opt/otrs$ Karl From: karlzre@hotmail.com To: otrs@otrs.org Date: Tue, 22 Jun 2010 12:52:50 +0000 Subject: [otrs] Problem configuring cron Hi, regarding the doc, i'm configuring the cron jobhttp://wiki.otrs.org/index.php?title=Installation_on_Debian_5.04_lenny I have this error: administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done # copies all files with .dist extension to regular name-bash: syntax error near unexpected token `do' Could anyone help me to configure that ? Thx Karl Vous utilisez encore Internet Explorer 6 of 7? Mettez à jour maintenant! _________________________________________________________________ Naviguez en toute sécurité: téléchargez Internet Explorer 8 http://www.microsoft.com/belux/fr/windows/internet-explorer/

Hi, On 22.06.2010, at 14:52, Trasschaert Karl wrote:
administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done # copies all files with .dist extension to regular name -bash: syntax error near unexpected token `do’
Could anyone help me to configure that ?
Just try: sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done Freundliche Grüße / Kind regards Nils Leideck -- Nils Leideck Senior Consultant nils.leideck@leidex.net nils.leideck@otrs.com http://webint.cryptonode.de / a Fractal project

Hi, I've the same problem: administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done-bash: syntax error near unexpected token `do' From: nils.leideck@leidex.net Date: Tue, 22 Jun 2010 22:54:09 +0200 To: otrs@otrs.org Subject: Re: [otrs] Problem configuring cron Hi, On 22.06.2010, at 14:52, Trasschaert Karl wrote:administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done # copies all files with .dist extension to regular name-bash: syntax error near unexpected token `do’ Could anyone help me to configure that ? Just try: sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done Freundliche Grüße / Kind regards Nils Leideck -- Nils Leideck Senior Consultant nils.leideck@leidex.net nils.leideck@otrs.com http://webint.cryptonode.de / a Fractal project _________________________________________________________________ Surfez sans laisser de traces: téléchargez Internet Explorer 8 http://www.microsoft.com/belux/fr/windows/internet-explorer/

* Trasschaert Karl
Hi, I've the same problem: administrator@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 ralf.hildebrandt@charite.de | http://www.charite.de

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 administrator@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: Ralf.Hildebrandt@charite.de To: otrs@otrs.org Subject: Re: [otrs] Problem configuring cron
* Trasschaert Karl
: Hi, I've the same problem: administrator@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 ralf.hildebrandt@charite.de | 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/

* Trasschaert Karl
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
administrator@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
You didn't define $foo. But at least it's working now :) -- 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 ralf.hildebrandt@charite.de | http://www.charite.de

Hi, It's working now, thx I stil have a problem with the cron, when i try to start cron sudo ./Cron.sh start otrs/opt/otrs/binCron.sh - start/stop OTRS cronjobs - <$Revision: 1.19 $>Copyright (C) 2001-2009 OTRS AG, http://otrs.org/"/opt/otrs/var/tmp/otrs-cron-tmp.29995":125: bad minuteerrors in crontab file, can't install.failed Any idea whats wrong or what's the otrs user password ? thx Karl
Date: Fri, 25 Jun 2010 15:28:15 +0200 From: Ralf.Hildebrandt@charite.de To: otrs@otrs.org Subject: Re: [otrs] Problem configuring cron
* Trasschaert Karl
: 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
administrator@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
You didn't define $foo. But at least it's working now :)
-- 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 ralf.hildebrandt@charite.de | 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/
participants (3)
-
Nils Leideck - ITSM
-
Ralf Hildebrandt
-
Trasschaert Karl