Normal Topic Start Sesame Server on file server boot up? (Read 878 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Start Sesame Server on file server boot up?
Oct 19th, 2011 at 3:50pm
Print Post Print Post  
We've recently upgraded our entire network, now running Win 7 workstations and a Win 2008 Server.  The server architecture is such that a Host fires up (JAMIARAHOST), on which immediately starts a virtual file server (DC01).

When one logs into the file server as Administrator, one of the programs that runs at startup is a batch file (StartSesame.bat) which does two things: 1) runs Sunlock.exe on all the applications in C:/Sesame/Miara and 2) starts the Sesame Server.  All of this works fine....as long as someone is there to log in as Administrator.

I've been trying to figure out a way to get the batch file to run independent of the login.  That is, as soon as JAMIARAHOST starts up DC01, StartSesame.bat runs, before any user has logged in.  Since this cannot work as a file or shortcut in the Startup folder of a user (because a user has to log in), I've tried directly editing DC01's registry, putting the program in the Current Machine-Run key and the RunOnce key.  Both failed to do what I want.

Does anyone have any experience or advice on how this might be accomplished?  Thank you for your help.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Start Sesame Server on file server boot up?
Reply #1 - Oct 19th, 2011 at 4:19pm
Print Post Print Post  
You should be able to set it as a scheduled task for when the system boots.

Be sure to specify the -daemon switch for Sesame Server in your batch file as the system will not have a gui at that time to display the Sesame server window.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Start Sesame Server on file server boot up?
Reply #2 - Oct 25th, 2011 at 1:11pm
Print Post Print Post  
Thank you Ray. I wonder if you could teach me a bit more.  I've never set up a scheduled task.  Would I do this for JAMIARAHOST, or DC01?

I've also never used the -daemon switch.  Can you tell me where to put the switch in the following batch file?
Code
Select All
CD\Sesame\Miara
Sunlock.exe C:\Sesame\Miara\MIARA.db
Sunlock.exe C:\Sesame\Miara\AREACODE.db
Sunlock.exe C:\Sesame\Miara\DESCCODE.db
Sunlock.exe C:\Sesame\Miara\FORKLIFT.db
Sunlock.exe C:\Sesame\Miara\LABOR.db
Sunlock.exe C:\Sesame\Miara\MONTHTOTALS.db
Sunlock.exe C:\Sesame\Miara\RATES.db
Sunlock.exe C:\Sesame\Miara\TESTKEY.db
Sunlock.exe C:\Sesame\Miara\TRAILERS.db
Sunlock.exe C:\Sesame\Miara\ZIPCODE.db
Sesame.exe -server DC01 



If I'm reading page 555 of the manual correctly, it looks like it should come between the -server switch and DC01. Is that correct?  Once it's running, and after a user (Administrator) logs in, is there a way to get the GUI up?

Thanks again for your help, Ray.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Start Sesame Server on file server boot up?
Reply #3 - Oct 25th, 2011 at 2:33pm
Print Post Print Post  
Hello Scott,

Given what I know of how you are set up, I would think the scheduled tasks of DC01 is where you would want to put it.

It can go either before or after the -server switch. I prefer it after but that's just me. There is not a way to display the GUI after someone logs in when you start Sesame this way.

Code
Select All
CD\Sesame\Miara
Sunlock.exe C:\Sesame\Miara\MIARA.db
Sunlock.exe C:\Sesame\Miara\AREACODE.db
Sunlock.exe C:\Sesame\Miara\DESCCODE.db
Sunlock.exe C:\Sesame\Miara\FORKLIFT.db
Sunlock.exe C:\Sesame\Miara\LABOR.db
Sunlock.exe C:\Sesame\Miara\MONTHTOTALS.db
Sunlock.exe C:\Sesame\Miara\RATES.db
Sunlock.exe C:\Sesame\Miara\TESTKEY.db
Sunlock.exe C:\Sesame\Miara\TRAILERS.db
Sunlock.exe C:\Sesame\Miara\ZIPCODE.db
Sesame.exe -server DC01 -daemon 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Start Sesame Server on file server boot up?
Reply #4 - Oct 28th, 2011 at 7:30pm
Print Post Print Post  
Thanks Ray!
  

**
Captain Infinity
Back to top
IP Logged