LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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 07:41 PM.
 
Old 04-14-2008, 07: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, 07: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, 08:36 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
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, 08:55 PM   #5
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 72
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 08:59 PM.
 
  


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


All times are GMT -5. The time now is 06:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration