Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how i can execute windows batch file from UNIX_AIX i install copssh ???

share|improve this question
how is this question different from your former one:… ? – natxo asenjo Sep 30 '10 at 19:09
up vote 2 down vote accepted

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.

share|improve this answer
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

Look out Samba client 'net rpc' commands. You can do lot of stuff regarding user management, shares, printers, etc.

For instance:

net rpc shell

I don't know if it's script friendly but you can always hack-it a little with expect.

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.