Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Window's startup kind of things...

Posted on 2002-05-31
2
Medium Priority
?
225 Views
Last Modified: 2010-04-20
Suppose I have a simple shell script which run a java class file like this:

a.sh
------

java MyProgram

Now I want to execute that script every time linux start. How I can do that? Is there any facility just like Window's StartUp in linux?

regards,
Subhasis.
0
Comment
Question by:mitra_subhasis
[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
2 Comments
 
LVL 4

Accepted Solution

by:
MFCRich earned 150 total points
ID: 7046934
Your "rc.local" file is the most common place to put this sort of thing. Depending on your distro it will be in '/etc/rc.d' or '/etc/init.d'. The file is just a script so add the apropriate lines at the and of it to run your program at boot time.
0
 

Author Comment

by:mitra_subhasis
ID: 7110069
Sorry for being late.

regards,
Subhasis
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

618 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