03-28-2007
Yes, the Python script works perfectly when I run it using,
$ python metriculate.py
The script is a simple MySQL operation. I have tried several Python scripts with these MySQL operations, but all of them give the SAME error when I use them with crontab.
David
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a cron on a Linux server that isn't executing properly.
CRON (with specific info replaced):
MAILTO=emailaddress@server.com
*/2 * * * * python /data/site/cron.py
OUTPUT:
python: can't open file '/data/site/cron.py
': No such file or directoryAdditional info
- The python path is... (3 Replies)
Discussion started by: theHire
3 Replies
2. Programming
Hello,
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
>>> import subprocess
>>> help(subprocess)
...
...
I'm hoping so as I hate scrolling and love how less works with... (0 Replies)
Discussion started by: Narnie
0 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a cron job defined in my crontab to execute once every day. This works perfectly fine on my local installation. However for some reason the job never runs on the actual server.
Below are my crontab entires in my local crontab and server crontab respectively
0 10 * * * cd... (2 Replies)
Discussion started by: vamsy
2 Replies
4. SuSE
Okay, so I have had this problem on openSUSE, and Debian systems now and I am hoping for a little help. I think it has something to do with Python but I couldn't find a proper Python area here.
I am trying to redirect the output of "ssh suse-server 'python -V'" to a file. It seems that no matter... (3 Replies)
Discussion started by: Druonysus
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all...
Not sure where to put this so I put it here...
All comments welcome...
1) Is the Python language now considered a part of the *NIX transient command structure much like Perl, (and awk)?
2) If so which OSes now have it as part of a "default" install - NOT an extra to be... (5 Replies)
Discussion started by: wisecracker
5 Replies
6. Shell Programming and Scripting
I am working on requirement on spreadsheet in python scripting.
I have a spreadsheet containing cell values and with background color.
I am able to read the value value but unable to get the background color of that particular cell.
Actually my requirement is to read the cell value along... (1 Reply)
Discussion started by: giridhar276
1 Replies
7. UNIX for Dummies Questions & Answers
Hi!
I'm using a RaspberryPi with standard Raspbian.
Currently I'm working on some sort of weather station.
For now I have three python scripts - one which is updating txt files for website - update1m.py ( it will not be necessary in few next days so I'll delete it) , second one for updating... (4 Replies)
Discussion started by: bartocham
4 Replies
8. Windows & DOS: Issues & Discussions
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies
9. Programming
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT LINUX
py3compile
PY3COMPILE(1) PY3COMPILE(1)
NAME
py3compile - byte compile Python 3 source files
SYNOPSIS
py3compile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]
pycompile -p PACKAGE
DESCRIPTION
Wrapper around Python standard library's py_compile module to byte-compile Python 3 files.
OPTIONS
--version
show program's version number and exit
-h, --help
show this help message and exit
-f, --force
force rebuild of byte-code files even if timestamps are up-to-date
-O byte-compile to .pyo files
-q, --quiet
be quiet
-v, --verbose
turn verbose mode on
-p PACKAGE, --package=PACKAGE
specify Debian package name whose files should be bytecompiled
-V VRANGE
force private modules to be bytecompiled with Python 3 version from given range, regardless of the default Python 3 version in the
system. If there are no other options, bytecompile all public modules for installed Python 3 versions that match given range. VER-
SION_RANGE examples:
o 3.1 version 3.1 only,
o 3.1- version 3.1 or newer,
o 3.1-3.3 version 3.1 or 3.2,
o -4.0 all supported 3.X versions
-X REGEXPR, --exclude=REGEXPR
exclude items that match given REGEXPR. You may use this option multiple times to build up a list of things to exclude
AUTHOR
Piotr Oarowski, 2012-2013
PY3COMPILE(1)