Automator to run terminal commands?

Discussion in 'Mac Basics and Help' started by matttrick, Feb 14, 2009.

  1. macrumors 6502

    Joined:
    Aug 28, 2006
    #1
    Is this possible? I need automator to run this set of commands:

    dscacheutil -flushcache
    sudo sysctl -w net.inet.tcp.rfc1323=0
    sudo sysctl -w net.inet.tcp.recvspace=32768
    sudo sysctl -w net.inet.tcp.sendspace=32768
    sudo sysctl -w net.inet.tcp.win_scale_factor=1
    sudo sysctl -w net.inet.tcp.sockthreshold=0

    Every 6 hours or so. It is for playing WoW, if I dont do that like once every other day or so, WoW will just kill the connection every time I log in, and this fixes it. It would be nice to not have to worry about it.

    I've never used automator before so idk if this is even possible..
     
  2. macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #2
    Sure is.
     

    Attached Files:

  3. thread starter macrumors 6502

    Joined:
    Aug 28, 2006
    #3
    nice, how do i make it run at a certain interval?
     
  4. thread starter macrumors 6502

    Joined:
    Aug 28, 2006
    #4
    eh also i need to enter my password on the second command, seems to be hanging it.
     

Share This Page