I'm not sure how I would do that. Initially, I was invoking the URL for the deletion method using lynx. When I run lynx interactively, there are certain prompts I have to answer - so I created an expect script to do this. The script runs when invoked from a terminal session - but had problems when I ran the expect script in a xron. Also, the sys admin for the runtime machine is not keen on installing lynx. Do you know of alternatives that will not require bringing up a browser? Thanks for your help - I really appreciate it. Shilpa -----Original Message----- From: Chris Withers To: Shilpa Shenvi Cc: 'george donnelly'; zope@zope.org Sent: 8/29/02 6:23 AM Subject: Re: [Zope] xron on Solaris Shilpa Shenvi wrote:
Thanks for replying - no, I'm not using ZEO. I have also downloaded Zope 2.5.1 on my PC - the xron works fine on my PC, so I am Wondering if it is OS related.
It probably is. Xron has never felt very reliable. Why not just use cron? cheers, Chris
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
participants (2)
-
Mike Renfro -
Shilpa Shenvi