how i can pass argument to windows 2003 batch file and execute it from unix-aix and return value to unix-aix
views:
30answers:
2
+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
2010-09-30 08:54:28
ok i do it but when i enter the password the following result appear >>>>Permission denied, please try again.
Osama Ahmad
2010-09-30 10:51:18
+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
2010-09-30 09:10:58
ok i do it but when i enter the password the following result appear >>>>Permission denied, please try again
Osama Ahmad
2010-09-30 10:51:50
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
2010-09-30 12:34:26