We can Use Linux Commands in Windows with Cygwin

We can use the UNIX/LINUX commands and also run shell scripts in Windows.This can possible with Cygwin it is free software can download from site.

We can refer the bellow links for reference

Installing Cygwin/X

http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html

 or


http://www.howtogeek.com/howto/41382/how-to-use-linux-commands-in-windows-with-cygwin/

Cygwin Package List

http://cygwin.com/packages/

EMS scripting - How to execute a sequence of EMS commands

We can execute a sequence of EMS commands by writing a simple script file.
write EMS commands in txt file and save in location C:\tibco\ems\5.1\bin
Example script file is dev.scr and its content is

show queues
show topics


open command prompt and go to the location C:\tibco\ems\5.1\bin and run the below command, it will execute the EMS commands

C:\tibco\ems\5.1\bin>
tibemsadmin -server "tcp://localhost:7222" -user admin -password "" -script C:\tibco\ems\5.1\bin\dev.scr


just give the full path of the file with the extension(i.e C:\script.txt or C:\script.scr or C:\script.anything) in the command and run it.
Even if there is no file extension, it doesnt matter :-)...you just need to have a plain text file with all the ems commands.


Syntax of the command is

tibemsadmin -server <server-url> -user <user-name> -password  <password> -script C:\script.txt

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP