Find the answer to your Linux question:
Results 1 to 3 of 3
i'm trying to automate terminal commands to execute at startup (rc5) one is a background process: Code: xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1 the other is a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Location
    CA
    Posts
    20

    execute terminal command at startup


    i'm trying to automate terminal commands to execute at startup (rc5)

    one is a background process:
    Code:
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
    the other is a gui application:
    Code:
    /home/labr/apps/gmail-notify/notifier.py
    i placed these commands in /etc/rc.local but does nothing.

    **running fedora 13 Gnome

  2. #2
    Just Joined!
    Join Date
    Mar 2008
    Posts
    2
    Why don't you try to simply add your applications to System->Preferences->Startup Applications

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Location
    CA
    Posts
    20
    to answer my own question,

    i was looking for 'chkconfig --add /home/labr/apps/gmail-notify/notifier.py'

    and i should have created a bash script:

    Code:
    touch xinput.sh
    Code:
    #!/bin/bash
    #xinput.sh
    
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
    fi
    Code:
    chmod +x touch.sh
    then

    Code:
     chkconfig --add /path/to/xinput.sh

Posting Permissions

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