Solved

Window's startup kind of things...

Posted on 2002-05-31
2
217 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
2 Comments
 
LVL 4

Accepted Solution

by:
MFCRich earned 50 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now