Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-13-2005, 09:01 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
How can I execute a cmd on a startup ??

I am running tests on 2 Linux systems (RedHat 8.0). One system
remotely logins into another for testing. I am trying to find a way to

export=DISPLAY=x.y.x.y:0.0 command everytime my system reboots.

Is there a file in Linux where I can specify to run the above evertime
it reboots ??
Old 09-13-2005, 12:42 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You could put it at the end of rc.local but note that only subprocesses will have access to the variable.

If you want to make it available in all shells then put it at the end of /etc/bashrc.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup scripts not bothering to execute... systemparadox Slackware 3 01-26-2005 12:56 PM
execute file at startup? khucinx Programming 1 06-09-2004 11:27 AM
IceWM doesn't execute my startup script martinpi Linux - Software 1 05-28-2004 02:24 AM
Programs execute at startup Greg21 Linux - Newbie 5 06-05-2003 03:07 PM
execute mount (or any) command on startup frieza Linux - Software 3 04-29-2003 06:09 PM

All times are GMT -5. The time now is 04:59 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