LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2008, 06:39 PM   #1
LinuxUser101
Member
 
Registered: Feb 2008
Location: Earth
Distribution: RHEL
Posts: 32

Rep: Reputation: 15
bashrc file


A user mentioned adding text to the ~/.bashrc file to be ran during startup. I found it and need to know, can I add this to it?

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export PATH=$PATH:/sbin
syndaemon -d

Last edited by LinuxUser101; 04-14-2008 at 06:41 PM.
 
Old 04-14-2008, 06:43 PM   #2
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
Should be fine like that. A .bashrc file is basically a shell script so anything that would be a valid command on the command line should be valid in that.
 
Old 04-14-2008, 06:50 PM   #3
LinuxUser101
Member
 
Registered: Feb 2008
Location: Earth
Distribution: RHEL
Posts: 32

Original Poster
Rep: Reputation: 15
Well the export PATH worked but the syndaemon -d did not load. Should this be ran from eleswhere?
 
Old 04-14-2008, 07:36 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by LinuxUser101 View Post

Well the export PATH worked but the syndaemon -d did not load. Should this be ran from eleswhere?
syndaemon might not be on the PATH that exists at the time that you run the command. Try giving the full pathname for the syndaemon command.

-------------------
Steve Stites
 
Old 04-14-2008, 07:55 PM   #5
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
I don't think syndaemon would work too well from .bashrc, it needs to be run after X starts, as far as I know. I would run it from .xinitrc, or if your desktop environment (Gnome, KDE, Xfce, etc) has a built in function to auto start applications.

Last edited by elliott678; 04-14-2008 at 07:59 PM.
 
  


Reply



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
reloading .bashrc file blackzone Linux - Newbie 8 03-02-2013 10:58 AM
Bashrc file Gins Linux - General 19 09-06-2005 03:19 PM
can't the file bashrc Paxmaster Linux - Software 10 01-02-2005 06:58 AM
where is the .bashrc file??? xenia Linux - Newbie 8 05-08-2004 12:11 PM
bashrc file Linvilidiot Linux - Newbie 3 03-11-2004 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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