how i can execute windows batch file from UNIX_AIX i install copssh ???
Asked
Active
Viewed 3,217 times
1
-
how is this question different from your former one: http://serverfault.com/questions/186123/how-i-can-pass-argument-to-windows-2003-batch-file-and-execute-it-from-unix-aix-a/ ? – natxo asenjo Sep 30 '10 at 19:09
3 Answers
2
You can't run Windows Batch files on UNIX / AIX. If you mean that. If you want to trigger execution, installing openssh (from cygwin maybe) is a good idea.
Craig
- 560
- 3
- 13
-
NO NO not on unix-AIX .... i want to run command in the windows server itself – Mohammad AL-Rawabdeh Sep 30 '10 at 14:30
0
Look out Samba client 'net rpc' commands. You can do lot of stuff regarding user management, shares, printers, etc.
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html
For instance:
net rpc shell
I don't know if it's script friendly but you can always hack-it a little with expect.
anders
- 235
- 2
- 10
0
Once you have CopSSH installed, you should be able to shell in and prefix any windows command with cmd /C
[Administrator@Computer /cygdrive/c]
$ cmd /C curl
curl: try 'curl --help' or 'curl --manual' for more information
Nuri Hodges
- 381
- 3
- 12