LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-09-2007, 11:13 AM   #1
tenmiles
Member
 
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 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.
 
Old 12-09-2007, 11:20 AM   #2
indienick
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 192.168.1.100)" (without quotes) to your ~/.bashrc file.
 
Old 12-09-2007, 11:22 AM   #3
szim90
Member
 
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, 11:27 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
For manual configuration, you may have a look here: http://synergy2.sourceforge.net/autostart.html
 
Old 12-09-2007, 11:28 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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


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


All times are GMT -5. The time now is 05:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration