LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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, 10: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, 10: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, 10:27 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

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

Rep: Reputation: 77
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 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

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

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration