DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete it and notify the sender immediately. Please note that there is no guarantee that this email or any attachment is virus free or has not been intercepted or amended.
Brian, You gave me an idea with your suggestion. I created a small app in VB.Net using the WMI to spawn processes on a remote machine. It's a console app that takes in the server's address, username, password and the command to execute. I have tested it this morning and it works perfectly and now I can execute UVSH.EXE on the Universe server from a remote machine and it runs as it would if a local user had executed it. If this would be useful to anyone else then let me know and I will forward a zipped copy out. Thanks Andy Moore Selima Software Ltd. -----Original Message----- From: Brian Leach [mailto:[EMAIL PROTECTED] Sent: 01 August 2005 11:37 To: [email protected] Subject: RE: [U2] UVSH from another machine Andy If I understand this right, you are trying to end up running a uvsh executable on one machine on a UniVerse account on another machine. Bad idea: no least because of the locking issues. You might be better off to write a small VB Script to instantiate a UniObjects connection to the remote machine and run the program 'in place'. You can execute the script by calling the CSCRIPT.EXE program in your Windows directory passing the script name. Email me offlist if you need an example of a VBScript with UniObjects. Brian > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Andy Moore > Sent: 01 August 2005 10:33 > To: [email protected] > Subject: [U2] UVSH from another machine > > DISCLAIMER: > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. > If you have received this email in error, please delete it and notify > the sender immediately. Please note that there is no guarantee that > this email or any attachment is virus free or has not been intercepted > or amended. > > I am trying to use UVSH to launch a basic program in Universe, but I > need to call it from another server. > > On the other server at the moment I have a simple batch file that is > called when an event occurs. > > The batch file sets the D drive on the Universe server as a mapped > drive called X on this server, then calls UVSH from the account's > directory with the program name after it. > > The problem is that as the drive is mapped as X and not D (as D is > already in use) UVSH doesn't call the application as it's looking for > the account on X instead of D. > > Has anyone come across this issue before or know a way around it? > > The batch file is as follows: > > @echo off > net use x: \\uvserver\d$ password /user:uvserver\administrator > x: > cd\PrimaryStuff\BISERVERCONTROL > x:\Ardent\UV\bin\uvsh.exe absencesignal > > > Andy Moore > Selima Software Ltd > Tel: 0114 2815000 > Fax: 0114 2817777 > email: [EMAIL PROTECTED] > Support: http://tracker.selima.co.uk <http://tracker.selima.co.uk/> > Forum: http://forum.selima.co.uk <http://forum.selima.co.uk/> > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
