[Zope] xron on Solaris
Shilpa Shenvi
sshenvi@nal.usda.gov
Fri, 30 Aug 2002 16:12:08 -0400
Hi,
I tried your solution - I created a script that would call the url.
When I run the script from the command line, it works. When I run
The script from the cron, I get the following error:
Your "cron" job on cobweb2
autDel.py
produced the following output:
Traceback (most recent call last):
File "autDel.py", line 3, in ?
import urllib, sys
File "/usr/local/lib/python2.1/urllib.py", line 26, in ?
import socket
File "/usr/local/lib/python2.1/socket.py", line 41, in ?
from _socket import *
ImportError: ld.so.1: /usr/local/bin/python: fatal: libgcc_s.so.1: open
failed: No such file or directory
Have you seen this before? How did you handle it?
Thank you,
Shilpa
-----Original Message-----
From: Mike Renfro [mailto:renfro@tntech.edu]
Sent: Thursday, August 29, 2002 9:13 AM
To: Shilpa Shenvi
Cc: zope@zope.org
Subject: Re: [Zope] xron on Solaris
On Thu, Aug 29, 2002 at 08:24:43AM -0400, Shilpa Shenvi wrote:
> When I run lynx interactively, there are certain prompts I have to
> answer - so I created an expect script to do this.
> Do you know of alternatives that will not require bringing up a
> browser?
Python and urllib, or Perl and LWP. Assuming the prompts you answer in
lynx are just form entries, it's simple. Even my feeble Python skills
managed to put together a script that filled out all the entries on
Verizon's website in order to send my phone a text message:
#!/usr/bin/python
import urllib, sys
params = urllib.urlencode({'min': '8005551212',
'showDisclaimer': 'n',
'Send.x': 'Yes',
'Subject': '',
'senderName': 'Me',
'message': sys.argv[1]})
f=urllib.urlopen("http://www.msg.myvzw.com/results.jsp",params)
All the above parameters were just scraped out of the HTML source of
the form.
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu