?
Solved

Making command run on startup

Posted on 2003-03-25
8
Medium Priority
?
133 Views
Last Modified: 2010-04-13
We have an application Web server that whenever we reboot, I have to open a command prompt window, and run :  servletrunner -p 8081 -d d:\pendoc\servlet

The window has to stay open for this to run.

I need to figure out a way to do this automatically.  The big thing is getting it running in a DOS application window.  Is this even possible?
0
Comment
Question by:truckfanatic_com
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 

Accepted Solution

by:
Chr1s1nNYC earned 200 total points
ID: 8205381
use notepad to create a batch file with

START servletrunner -p 8081 -d d:\pendoc\servlet

in it and put the batch file in the Programs-Startup folder of the account you log in with.
0
 
LVL 10

Expert Comment

by:pbarrette
ID: 8205517
Hi Truckfanatic,

You will need to run this program as a Win2K service.

Look here for instructions using tools from the Resource Kit:
http://support.microsoft.com/?kbid=137890

pb
0
 
LVL 1

Author Comment

by:truckfanatic_com
ID: 8205526
Dude!  Thanks :-)
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 10

Expert Comment

by:pbarrette
ID: 8205736
Hi Truckfanatic,

Keep in mind that the solution from Chr1s1nNYC will run your program only when the user logs into the computer.

pb
0
 
LVL 1

Author Comment

by:truckfanatic_com
ID: 8206046
But, from what I understand is that this servlett must be running in an open DOS window.  Is that possible to do with a service?
0
 

Expert Comment

by:Chr1s1nNYC
ID: 8206447
I didn't check what the exe in question was when I answered this question. I just went on the theory that if it worked from a DOS window manually a batch file would do the same thing. If it's a service then you should probably run it as one....
0
 
LVL 1

Author Comment

by:truckfanatic_com
ID: 8206515
It isnt a service...I would like it to be one, but I dont think it was possible.
0
 
LVL 10

Expert Comment

by:pbarrette
ID: 8211298
Hi Truckfanatic,

It looks like you are correct. The servletrunner program does not load correctly as a service.

I have looked around, however, and found this for you:
http://www.geocrawler.com/archives/3/6687/2002/6/0/8842636/

It's called MiniServer and is a replacement for servletrunner which will allow you to run your servlet as a Windows service. The link to the software on that page is incorrect. The correct link is here:
http://cjos.sourceforge.net/redist/mirror/jos1o/jos1o-minisrv1c-2-win.zip

More info here:
http://cjos.sourceforge.net/redist/wiki/M/MiniServer.html

pb
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
New style of hardware planning for Microsoft Exchange server.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question