?
Solved

Window's startup kind of things...

Posted on 2002-05-31
2
Medium Priority
?
224 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month7 days, 23 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