Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How to connect to a Unix box from Windows and execute a script?

Hi there,

I apologize if this is not the right newsgroup but I might as well ask. At
my work place we have both Windows and Unix although there is no SAMBA
implementation to allow Unix to interact with a Microsoft Windows client or
server (vice versa).

What I want to do is create some Windows program/script (e.g. VBA based
script that will be executed from inside Excel) that would connect to 2
separate Unix accounts (with different login credentials for each account)
and execute a separate shell command on each Unix account.

Any suggestions what is the best way to achieve something like this?

Thanks
Michael


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default How to connect to a Unix box from Windows and execute a script?

Sure.

If you're a Java shop and you know ANT ...

Have Excel VBA create an ANT properties file having data saved in
Excel.

Then call ANT from Excel just as you'd execute any shell command from
Excel.

ANT, as it turns out, when installed with the optional.jar, has easy to
use ftp tasks.

The script is easier to write if the commands can be executed
sequentially instead of simultaneously. If it has to be simultaneously,
you'll have to spon both processes from ANT rather than from Excel.


Michael wrote:
Hi there,

I apologize if this is not the right newsgroup but I might as well ask. At
my work place we have both Windows and Unix although there is no SAMBA
implementation to allow Unix to interact with a Microsoft Windows client or
server (vice versa).

What I want to do is create some Windows program/script (e.g. VBA based
script that will be executed from inside Excel) that would connect to 2
separate Unix accounts (with different login credentials for each account)
and execute a separate shell command on each Unix account.

Any suggestions what is the best way to achieve something like this?

Thanks
Michael


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
Connect PC to UNIX via TCP/IP [email protected] Links and Linking in Excel 0 January 20th 07 09:34 PM
access to info from windows and unix servers EdStevens[_2_] Excel Programming 0 September 1st 06 03:53 PM
How do I use excel to create a unix script? Nanette Excel Programming 4 June 22nd 06 09:20 PM
Hide a cell using Windows Script John Doe[_5_] Excel Programming 1 October 11th 04 04:57 AM
Use Windows Script to run Windows Explorer Search? Ian Elliott[_3_] Excel Programming 0 January 12th 04 05:03 PM


All times are GMT +1. The time now is 01:39 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"