public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jan Seeger <jan.seeger@thenybble.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Moving a file using Python and Cron
Date: Sun, 9 Sep 2007 11:37:38 +0200	[thread overview]
Message-ID: <20070909093738.GA4853@venus> (raw)
In-Reply-To: <a9f39a410709071034l144d1ff3y170d62b26444af46@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12:34 Fri 07 Sep     , Greg Lindstrom wrote:
<snip>
> 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').
<snip>

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



      reply	other threads:[~2007-09-09  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 17:34 [gentoo-user] Moving a file using Python and Cron Greg Lindstrom
2007-09-09  9:37 ` Jan Seeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070909093738.GA4853@venus \
    --to=jan.seeger@thenybble.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox