I finnaly was able to get the cron to run my command every hour by
01 */1 * * * admin python /home/admin/zoneclient.py ...[snip]...
The snip represents Jlee40 ****** leecomp.us, the personal login information.
However every hour i get a email my cron saying,
sh: zoneclient.tmp: Permission denied
Traceback (innermost last):
File "/home/admin/zoneclient.py", line 3410, in ?
_main(sys.argv)
File "/home/admin/zoneclient.py", line 3073, in _main
fp = open(Tempfile, "r"
IOError: [Errno 2] No such file or directory: 'zoneclient.tmp'
The zoneclient.tmp is the file that zoneclient.py writes the current ip in. It reads like this
ppp0 Link encap
oint-to-Point Protocol
inet addr:129.44.154.208 P-t-P:10.15.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:155 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
I dont understand whether the email is telling me that it cant find the file or that permission was denied to write. It is chmoded as -rw-r--r-- and root as the owner. I would appreciate any insight.
01 */1 * * * admin python /home/admin/zoneclient.py ...[snip]...
The snip represents Jlee40 ****** leecomp.us, the personal login information.
However every hour i get a email my cron saying,
sh: zoneclient.tmp: Permission denied
Traceback (innermost last):
File "/home/admin/zoneclient.py", line 3410, in ?
_main(sys.argv)
File "/home/admin/zoneclient.py", line 3073, in _main
fp = open(Tempfile, "r"
IOError: [Errno 2] No such file or directory: 'zoneclient.tmp'
The zoneclient.tmp is the file that zoneclient.py writes the current ip in. It reads like this
ppp0 Link encap
inet addr:129.44.154.208 P-t-P:10.15.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:155 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
I dont understand whether the email is telling me that it cant find the file or that permission was denied to write. It is chmoded as -rw-r--r-- and root as the owner. I would appreciate any insight.