Gentoo Archives: gentoo-user

From: Jan Seeger <jan.seeger@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving a file using Python and Cron
Date: Sun, 09 Sep 2007 09:52:56
Message-Id: 20070909093738.GA4853@venus
In Reply to: [gentoo-user] Moving a file using Python and Cron by Greg Lindstrom
2 Hash: SHA1
4 On 12:34 Fri 07 Sep , Greg Lindstrom wrote:
5 <snip>
6 > When I run the file from the command line everything works great,
7 > but when I schedule the job to run from the crontab file, the original file
8 > is created and populated, but the rename fails. I am using full paths for
9 > both the original and destination file, and run the command line version
10 > after I 'su' to the production account (named 'edith').
11 <snip>
13 I think cronjobs have a very limited environment (Reduced $PATH and so on). So
14 the first point I would check ist that my application does not depend on any
15 environment variables (call all binaries with their full path, for example).
16 Then, make sure that the user you are running at has the necessary permissions
17 to do so (does'nt seem to be a problem with you). And another thing: The cron
18 processes have no controlling terminal, so that's something which may go awry.
19 HTH
20 Jan Seeger
22 Version: GnuPG v1.4.7 (GNU/Linux)
24 iD8DBQFG477iMmLQdC6jvocRAgGKAJ9iali9yPgTUgz68t/Vn5wf9UHWtgCfTVnJ
25 yQmdQd4SmO88bR9W7tIwdD4=
26 =WlTn
27 -----END PGP SIGNATURE-----
28 --
29 gentoo-user@g.o mailing list