Find the answer to your Linux question:
Results 1 to 2 of 2
Iíve got quick oneÖ Iím running synergy between Windoze and RedHat. I start the client on the RedHat machine by manually entering in: Code: synergyc 192.168.0.5 Well I want it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    22

    Simple script question for X


    Iíve got quick oneÖ

    Iím running synergy between Windoze and RedHat. I start the client on the RedHat machine by manually entering in:

    Code:
    synergyc 192.168.0.5
    Well I want it to kick on when I start my GUI instead of manually running it. I found that if you enter in a script in:

    Code:
    /home/nice/.kde/Autostart
    The script will run when X starts, but when X is on I have an Emacs window up with my script contents? I know the script works because I have tried in from the path and given it the correct permissions. Here is my script file (mind you Iím very new at scripting)

    Code:
    #bin/bash
    synergyc 192.168.0.5
    Is this wrong anyone got any input?

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Well, first off, the script doesn't even have to be that complex. Just make a file:

    Code:
    synergyc 192.168.0.5
    set it executable, and stick it somewhere.

    Now then, what I'd recommend is more of fiddling with ~/.xinitrc, because I know how that works. Basically, anything there will be executed after X starts up. So for you, stick the following there:

    Code:
    /path/to/sysenrgyc/script &
    exec startkde
    That'll start X, then run your script in the background, and boot up KDE. When you exit KDE, you'll return to the commandline.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •