LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2005, 09:01 AM   #1
lab123
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
run

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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:06 AM.

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