PC Review


Reply
Thread Tools Rate Thread

How to connect to a Unix box from Windows and execute a script?

 
 
Michael
Guest
Posts: n/a
 
      18th Oct 2006
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 With Quote
 
 
 
 
gimme_this_gimme_that@yahoo.com
Guest
Posts: n/a
 
      19th Oct 2006
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to unix server and execute a command JB Microsoft C# .NET 3 24th Jan 2008 02:15 AM
how to execute a script by certain windows or domain account? Bishoy George Microsoft Dot NET Framework Forms 2 24th Aug 2006 04:47 PM
Windows 2000 SP4: logon script doesn't execute Harry Cover Microsoft Windows 2000 2 3rd Feb 2004 11:22 AM
execute .bat from Unix =?Utf-8?B?VEtC?= Microsoft Windows 2000 0 12th Dec 2003 02:21 PM
Execute Unix command using C# Joseph Microsoft C# .NET 6 14th Sep 2003 02:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 AM.