Results 1 to 3 of 3

Thread: help automating a terminal comand

  1. #1

    Default help automating a terminal comand

    I would like to run this terminal command:

    cat mouse.macro | xmacroplay :0

    Every two minutes. can I set cron up to do this?

  2. #2
    Join Date
    Mar 2009
    Location
    London
    Posts
    426

    Default Re: help automating a terminal comand

    Hi,

    Yes, you can set up cron to run a command.

    To edit your crontab go to a terminal and enter:
    Code:
    crontab -e
    Your default text editor will open with your crontab file in it.

    To perform a command every 2 minutes enter the frequency and command like so:
    Code:
     */2 * * * * command to execute
    Leave a blank line at the end of the file, save and exit the editor in the usual way.

    I hope this helps.

    Regards,
    Barry.
    Desktop: openSUSE 11.3 (x86) LXDE
    Laptop: Arch Linux (x86_64) GNOME 3

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: help automating a terminal comand

    If you need more background to cron in openSUSE, or if you want to change the editor that opens with "crontab -e", then this might help:
    Cron Tables (Crontab) in Suse / openSUSE [Event Scheduler for 10.x, 11.x]
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

Posting Permissions

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