I think that scripting support is essential for any interpreted language and if Pharo had it, its community would grow much faster.
Let's say, I learned now how to use HTML parsing in the GUI version of Pharo.
I went ahead and created my own class (or set of classes) in the image which can say retrieve a dollar rate from some bank web page.
Now I should be able to run Pharo in a "batch mode" saying something like... "./pharo -batch "DollarRateInfo :getAndSendEmail 'myaddress@domain.com".
This way I could schedule this command using cron to send me this dollar rate via email every day at 2 pm. Having this functionality I could really spend more time using Pharo for different needs and get better at using it.
I don't think it should be too hard to implement (please correct me if I am wrong). In the batch mode pharo would start in a "headless mode", read some input from a standard input (or from command line), execute it in a 'hidden' Workspace and send the output of the evaluation to the standard output.
Thank you,
Andrei
unfortunately I did not find the time to continue working on it but I would love to.
On May 12, 2010, at 9:50 PM, Gabriel Brunstein wrote:
> What about coral?
> http://scg.unibe.ch/wiki/projects/bachelorsprojects/coral
>
> 2010/5/12 Andrei Stebakov <lispercat@gmail.com>
> Is it possible to start Pharo headless and execute some command (say to get some info from a web page)?
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project