From: "Greg Lindstrom" <gslindstrom@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Moving a file using Python and Cron
Date: Fri, 7 Sep 2007 12:34:54 -0500 [thread overview]
Message-ID: <a9f39a410709071034l144d1ff3y170d62b26444af46@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 818 bytes --]
I have a python (2.4) routine running on Gentoo Linux. It creates a file
and, after the file is complete, renames the file using Python's os.rename()
command. 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 am told by my
sysadmin that the cron jobs run as edith as well, so he does not think it is
a permission issue (he points out the original file is being created and
populated as expected...the rename fails)
Have any of you dealt with anything like this? It really has me scratching
my head.
Thanks,
--greg
[-- Attachment #2: Type: text/html, Size: 903 bytes --]
next reply other threads:[~2007-09-07 17:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 17:34 Greg Lindstrom [this message]
2007-09-09 9:37 ` [gentoo-user] Moving a file using Python and Cron Jan Seeger
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=a9f39a410709071034l144d1ff3y170d62b26444af46@mail.gmail.com \
--to=gslindstrom@gmail.com \
--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