Run shell script from .bat file

hi

how can I execute a shell script on unix server from a .bat file of windows desktop??

Regards.

  1. Install putty.

  2. setup public/private keys using puttygen.exe

  3. use plink.exe to provide ssh client to invoke script on server

Cygwin allows it too.

This is an example that I use to open a window and ssh into an interactive shell on a Linux PC:

SET h=naim
SET fg=green
%RUN% xterm -fg %fg% -bg black -fn 9x15 -geometry 100x30 -ls -sb -rightbar -sl 1000 -title %h% -e ssh "%id%@%h%" &

(Cygwin is a freeware UNIX-like environment that runs under Windows.)

Dear Gurus,

I have a small query.. I want to call unix script via windows batch file.

My criteria.

i.e 1. I have windows server.. But windows server have oracle client only not oracle server.

  1. I have a procedure for caluclation. i.e under oracle server(in Unix not windows).

  2. I want to call that procedure via unix script and pickup the value(calculatd value) and redirect to batch file on windows using unix script.

a.bat is windows batch file
b.txt have some data file located in windows server
process_txtfile is procedure(in oracle under unix server)
unix script/oracle script should call the procedure and cacluate and append the line in b.txt file...

Please advice... any other alternatives also.

U r's new friend.

regards
Ram