SCIENTIFIC-LINUX-USERS Archives

February 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Hearns <[log in to unmask]>
Reply To:
John Hearns <[log in to unmask]>
Date:
Thu, 8 Feb 2007 21:52:14 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
Ioannis Vranos wrote:
>
> 
> How can I make a given script or an executable to run during start up, 

Edit your grub (or Lilo) configuration file and add the following to the 
  line beginning 'kernel' :            init=/path/to/executable

That'll do the trick :-)



Seriously though - booting straight into /bin/bash is a handy trick when 
you have a really borked system.
(Ioannis - I'm pulling your leg. Use  rc.local or /etc/profile.d as 
others have said).

-- 
      John Hearns
      Senior HPC Engineer
      Streamline Computing,
      The Innovation Centre, Warwick Technology Park,
      Gallows Hill, Warwick CV34 6UW
      Office: 01926 623130 Mobile: 07841 231235

ATOM RSS1 RSS2