Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-07-2004, 10:38 AM   #1
Registered: May 2004
Posts: 75

Rep: Reputation: 15
run a perticular script before loggin in

I need to run a perticular script containig
ip route > file1
every time my server is started. Where do i put this script file to make sure it runs every time before anyone log's in to my server?
Old 05-07-2004, 11:37 AM   #2
Registered: Apr 2004
Location: Sweden
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
If you're lucky enough to run slackware then just put the code (if it's bash) into your /etc/rc.d/rc.local (this is the BSD-style). I'm not so good with sysV-start scripts.

Someone with better knowhow of the sysV-init-scripts can perhaps help you if you use this.

Perhaps you can solve this with a .bashrc-file in your users homedirectory as well?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
How to know on termination or exit of a perticular process in Unix Pavan mahoorker Linux - Software 1 06-07-2005 07:28 AM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 07:49 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM
can't run a script script from icon in konqueror scottsteibel Linux - Software 1 08-02-2003 08:59 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration