Find the answer to your Linux question:
Results 1 to 3 of 3
Hi does linux supports automatic executable file as like windows support autoexec.bat file???I want to run one application aytomatically when linux boot. Please reply with details vineeta7...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    46

    automatic executable batch file in linux


    Hi

    does linux supports automatic executable file as like windows support autoexec.bat file???I want to run one application aytomatically when linux boot.

    Please reply with details


    vineeta7

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Well, the entire linux world works like Lego..
    So yea.. ^^
    there are Lots of initscripts.
    Linux works with Run Levels.
    level 0 is off
    level 3 is multiusr Console
    level 5 is X11
    level 6 is reboot.

    well there is a folder If I recall correctly /etc/inittab/
    there are files
    rc1 etc.
    They are the bootscripts and the runlevels.

    Well there is also a bootscript for when X11 starts and a bootscript for when Fluxbox, KDE or Gnome starts

    Well Google for Bootscript and you find your answer..
    Hope that helps
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763

    Red face

    Quote Originally Posted by vineeta7 View Post
    Hi
    does linux supports automatic executable file as like windows support autoexec.bat file???I want to run one application aytomatically when linux boot.
    Please reply with details
    vineeta7
    place the executable in your .profile file.
    so that everytime user logs in it will be executed ...
    if you want to execute at boot time ...try inittab file,

    Example:
    giis::boot:/usr/bin/giis -u > /dev/null


    i added above line in my inittab file ..
    so everytime linux boots a command called giis will run and it's outputs are sent to /dev/null ...just trash the output.

    Check out this init - Wikipedia, the free encyclopedia
    or simply type man inittab .
    All the best
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •