Solved

Window's startup kind of things...

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux installs 6 60
Python variable _ manually assigned 9 84
windows 7 starter missing password 21 77
Bash script - Exit out of choice loop 2 29
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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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…

777 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