From owner-freebsd-questions@FreeBSD.ORG Fri Sep 12 11:43:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C061C16A4BF for ; Fri, 12 Sep 2003 11:43:43 -0700 (PDT) Received: from hauptpostamt.charite.de (hauptpostamt.charite.de [193.175.66.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9F0F43FA3 for ; Fri, 12 Sep 2003 11:43:42 -0700 (PDT) (envelope-from alexander.haderer@charite.de) Received: from postamt1.charite.de (postamt1.charite.de [193.175.66.246]) by hauptpostamt.charite.de (Postfix) with ESMTP id AADA315C005; Fri, 12 Sep 2003 20:43:37 +0200 (CEST) Received: from chaplin.charite.de (chaplin.str.charite.de [192.168.202.88]) by postamt1.charite.de (Postfix) with ESMTP id 7FC98633AD; Fri, 12 Sep 2003 20:43:37 +0200 (CEST) Message-Id: <5.2.0.9.1.20030912203159.019b9718@postamt1.charite.de> X-Sender: afrika@postamt1.charite.de X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Fri, 12 Sep 2003 20:37:53 +0200 To: Gerard Samuel , FreeBSD Questions From: Alexander Haderer In-Reply-To: <3F620FD4.1090207@trini0.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at charite.de Subject: Re: Script doesn't complete via Cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 18:43:43 -0000 At 14:26 12.09.2003 -0400, Gerard Samuel wrote: >... >scp -q foo.zip server_name: >rm -rf foo_dev foo.zip > >------ > >Cron job -> >------ ># export, zip up and scp foo source to server_name >17 14 * * * /home/bar/bin/export-foo >2> /dev/null > /dev/null >------ > >When I execute the script by hand, it completes without any problems. >When I let a cronjob handle it, it doesn't scp the zip file to the remote >server. >I don't get any errors in /var/log/auth.log or /var/log/messages >Anyone has any ideas on how to fix this up? We had a similar problem with scp if I remember right. The problem was the remote server where a message was echoed during login with ssh (some echo stuff in the .profile or something like this). It seemed to be that scp got this echo-message too and then failed to operate. After removing the echo commands everything worked fine. Note: I may be wrong, its long time ago. Alexander -- ------------------------------------------------------------------ Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182 Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117 Sekr. Prof. Felix Email alexander.haderer@charite.de Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany ------------------------------------------------------------------