Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Initiate perl script in linux from a Windows VBA program

Hi,

I would appreciate help with the following. I would like to be able to
initiate a perl script that is residing on a linux server from an Excel
workbook. I am working on the Excel workbook in Windows. I would
appreciate any pointers, sample code for accomplishing this in VBA or
some other method. The perl script that I am trying to call will take
the information from a mysql database and update the Excel sheet. The
script will also take information from the Excel sheet and update the
database. thanks very much.

It seems to me that there are two main branches of solutions for me.
One is to set up a web server on the linux box and use my perl script
as a CGI. I would appreciate it if somebody could provide some sample
code on using the HTTP VB objects within VBA to call a script on the
linux box.
I think one question that I need to find out is how do I go about
finding out if I am able to make http requests from within VBA?

After, being able to proceed through this CGI path what points or
examples should I consider when thinking about security?

This CGI option seems to be suitable for me since I already have a
linux web server set up and one of the reasons I want to keep perl on
the linux server is that users of the application do not need to have
perl installed on their computer.

The other option that seems to be popular is the use of ODBC. I have
found from some sources that if I go through this ODBC route that I
would need to install perl on the windows side. Is this true?

What would be the deciding factors in figuring out which route to go
whether it be using CGI or ODBC? Basically in the application I want to
develop would allow a user within Excel will have a worksheet and be
able to press a button to start a process where one column in the
worksheet will be sent to query the mysql database to retrieve about
six columns of data to update the Excel worksheet. As well, about two
of the columns will be used to update the mysql database. Sometimes the
columns will be about 30 rows but it is possible that I will be working
with about 10 000 rows. I am concerned about speed but I think that the
slowness could possibly be obviated by precomputing the sql queries and
placing the values in a table since I already know what the queries
will be most of the time.

thanks very much


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
script to launch a program from excel calvin Excel Discussion (Misc queries) 4 January 29th 09 09:12 PM
excel, install perl script 2apart Excel Discussion (Misc queries) 0 March 26th 08 11:28 PM
Program Windows gmsmithwick Excel Discussion (Misc queries) 0 February 7th 05 04:05 AM
Use Windows Script to run Windows Explorer Search? Ian Elliott[_3_] Excel Programming 0 January 12th 04 05:03 PM
Shell Command to initiate Linux program verizon Excel Programming 0 October 21st 03 06:33 AM


All times are GMT +1. The time now is 06:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"