Solved

Window's startup kind of things...

Posted on 2002-05-31
2
222 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 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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