Posted: Thu Apr 12, 2007 5:32 am Post subject: Executing Scripts on Remote clients help?
Centurion
Joined: 24 May 2002 Posts: 108
I have a question related to triggering of applications on remote machines. Typically we have been running on unix and then triggering processes on remote unix machines. We did this by triggering a script
on the queue manager server box, and that script would then do a RSH call to another box to kick off the application script. We did it this way so that we could switch userids and run the application under a specified id. As long as the id making the rsh call was our MQ id.
For example, we would execute the following line
So now the script "script_to_run.ksh" would run under the userid "userid". This worked fine. Now we switched to running the MQ server on windows and also the clients are running on remote windows
boxes. So we wanted to do the exact same thing as we did on unix, except now we would run a windows BATCH file. The problem is that the RSH server on windows won't let us switch to whatever id we want. It
seems to be forcing us to always run the batch files under the MQ id that made the initial call. We have played around with the .rhosts file and nothing seems to allow us to switch ids to what we want.
I know we can put the userid on the ServerConn channel, but I was trying to avoid that. How do other people run scripts on remote boxes and change the id?
It's counter-intuitive to trigger a remote client application from the qmgr server using RSH.
Run a client trigger monitor - as what ever user you want, and then trigger the application locally. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum