From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IUJTM-0000Al-2n for garchives@archives.gentoo.org; Sun, 09 Sep 2007 09:52:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l899iluB001765; Sun, 9 Sep 2007 09:44:47 GMT Received: from lvps87-230-23-91.dedicated.hosteurope.de (thenybble.de [87.230.23.91]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l899ehhl029550 for ; Sun, 9 Sep 2007 09:40:43 GMT Received: from p54ab813e.dip0.t-ipconnect.de ([84.171.129.62] helo=localhost) by lvps87-230-23-91.dedicated.hosteurope.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IUJHW-0008LU-NX for gentoo-user@lists.gentoo.org; Sun, 09 Sep 2007 11:40:43 +0200 Date: Sun, 9 Sep 2007 11:37:38 +0200 From: Jan Seeger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Moving a file using Python and Cron Message-ID: <20070909093738.GA4853@venus> References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: da6ac70c-81e2-4b7d-88b6-f558ddc6e3f3 X-Archives-Hash: 2cba61accb15e84a7b91f1474452961e -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12:34 Fri 07 Sep , Greg Lindstrom wrote: > When I run the file from the command line everything works great, > but when I schedule the job to run from the crontab file, the original file > is created and populated, but the rename fails. I am using full paths for > both the original and destination file, and run the command line version > after I 'su' to the production account (named 'edith'). I think cronjobs have a very limited environment (Reduced $PATH and so on). So the first point I would check ist that my application does not depend on any environment variables (call all binaries with their full path, for example). Then, make sure that the user you are running at has the necessary permissions to do so (does'nt seem to be a problem with you). And another thing: The cron processes have no controlling terminal, so that's something which may go awry. HTH Jan Seeger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG477iMmLQdC6jvocRAgGKAJ9iali9yPgTUgz68t/Vn5wf9UHWtgCfTVnJ yQmdQd4SmO88bR9W7tIwdD4= =WlTn -----END PGP SIGNATURE----- -- gentoo-user@gentoo.org mailing list