The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To invoke a script on a remote machine sam_roy SUN Solaris 5 10-08-2008 12:31 PM
down load file from unix server to Windows machine. chandu_kalari Linux 3 12-02-2007 02:39 PM
Explor the Unix server on Windows Client machine ziaullahk IP Networking 2 09-08-2006 08:01 PM
how to remotely administer/validate UNIX server via Windows machine? sohungry73 Shell Programming and Scripting 5 06-20-2006 04:32 PM
executing applications/commands on a unix server from a windows PC megastar UNIX for Advanced & Expert Users 1 10-11-2005 10:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-24-2008
sachinrt sachinrt is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
How can invoke applications on Windows machine from AIX server

Hi folks,

Before I start explaning my problem let me tell you I am new to Unix environment. I am working on a application. It was developed in java (on Windows machine). But application for production will be deployed on AIX machine.

One of my requirement is I need to invoke QTP scripts and execute them (.vbs scripts wrapped in a batch file) on Windows server. Currently I am able invoke them since my development environment is in Windows. I able to map Windows servers where QTP scripts reside, to my windows server where my java application is deployed and they are working fine. Even if I don't map the windows shared locations, I am still able to invoke and execute batch files (.bat) just by giving absoulte path of the shared location like this :
\\<windows server name or IP address>\<folder>\<executable.bat>

My problem is my java application code will be deployed on AIX machine for production. In production I need to invoke bat files on Windows servers from AIX server. In production there will be only one AIX machine, but there will be 40-50 windows servers where these bacth files resides.

Please help me how can I achieve this from AIX. Your help is greatly appreciated. Infact my job depends on your help. Thanks in advance.
  #2 (permalink)  
Old 10-25-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,574
I would give a try using ssh...
One thing I dont get is if you were porting your application on AIX, why do you need to execute scripts on Win servers?
  #3 (permalink)  
Old 10-25-2008
sachinrt sachinrt is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
Hi VBE,

Thanks for replying. In application Java Application I am developing will be deployed on AIX machine where as QTP and WinRunner scripts this Java needs to invoke is on Windows servers. All these servers (AIX Server, and Windows Servers) will be inside the same firewall.

I think this gave you some idea what I am trying to achieve.

Thanks,
sachinrt
  #4 (permalink)  
Old 10-26-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
Investigate ssh as vbe suggested. ssh can not only create connections between machines (analogous to telnet) but also execute commands on other machines, like rsh/rexec. You will have to find out if Windoze is able to originate commands like his (i have no idea), but if it is this would be a viable way to do it.

The procedure would be:

1. set up ssh on Windows and AIX servers

2. create an ssh-key on the AIX machine and put that into the authorized_keys file on the Windows machine you want to execute commands on. On AIX the file would be ~/.ssh/authorized_keys in the home-directory of the user under whose id the command should be executed. What the analogous file on the Windows-machine is you will have to find out yourself.

3. Try to originate a command on the AIX machine:

ssh user@windows-machine "dir"

If everything works as planned you should get a directory listing from the Windows-server.

I hope this helps.

bakunin
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0