views:

30

answers:

2

how i can pass argument to windows 2003 batch file and execute it from unix-aix and return value to unix-aix

+1  A: 

You can use Telnet or SSH. SSH is highly recommended because Telnet is insecure. See this page to install OpenSSH server on Windows Server 2003. After installing it, you can connect to it from the AIX machine using ssh <server-address>, given that an ssh client is installed (most Unix systems have one installed by default). Once you're connected, you get the command line of the Windows machine, and you can run the batch file there.

imgx64
ok i do it but when i enter the password the following result appear >>>>Permission denied, please try again.
Osama Ahmad
+1  A: 

First you need to make sure you have an SSH service running on Windows. If you don't you can install Microsoft Windows Services for UNIX (SFU).

Then you can issue a remote command using rsh (or ssh) from your UNIX server:

$ rsh -l user_name windows_host_name "C:\path\to\script.bat"
dogbane
the result is host: name -l NOT FOUND ..... ????
Osama Ahmad
ok i do it but when i enter the password the following result appear >>>>Permission denied, please try again
Osama Ahmad
are you trying your windows username and password?
dogbane
yes ... but i want to ask you if i should give windows user access on copssh ... if yes how i can do this
Osama Ahmad