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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-09-2007, 10:13 AM
|
#1
|
Member
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43
Rep:
|
Running terminal commands automatically on logon
Every time I logon I run the command "synergyc 192.168.1.100" in the terminal and I was wondering how I would go about setting it up so that it would run on its own? I'm using FC6.
Thank you.
|
|
|
12-09-2007, 10:20 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
If you only want this command to run once, when you log in, I don't know how you could go about it, unfortunately.
However, if this command is able to be run everytime a new instance of bash (or whatever your primary shell is) is started, you can add "$(synergyc 192.168.1.100)" (without quotes) to your ~/.bashrc file.
|
|
|
12-09-2007, 10:22 AM
|
#3
|
Member
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39
Rep:
|
If you're using gnome, you could go to System -> Sessions and try adding the command there.
|
|
|
12-09-2007, 10:28 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Does it have to run when you login or can it be run at system startup? If it can be run at startup, you can put the commands in /etc/rc.d/rc.local.
|
|
|
All times are GMT -5. The time now is 05:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|