Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-09-2007, 10:13 AM   #1
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Rep: Reputation: 15
Running terminal commands automatically on logon

Every time I logon I run the command "synergyc" 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.
Old 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: Reputation: 65
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" (without quotes) to your ~/.bashrc file.
Old 12-09-2007, 10:22 AM   #3
Registered: Nov 2006
Distribution: Debian Testing
Posts: 39

Rep: Reputation: 15
If you're using gnome, you could go to System -> Sessions and try adding the command there.
Old 12-09-2007, 10:27 AM   #4
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
For manual configuration, you may have a look here:
Old 12-09-2007, 10:28 AM   #5
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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


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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
running commands automatically via SSH tpfraz Linux - General 1 02-13-2004 09:12 AM
Automatically running commands azebuski Linux - Newbie 3 02-11-2004 09:36 PM
Samba Logon script not mapping Drives automatically! kofi Linux - Software 0 07-21-2003 03:06 PM
automatically running commands... lhoff Linux - General 9 02-21-2002 02:34 PM

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