Shell script to run an app

This is a discussion on Shell script to run an app within the Mac OS X forums, part of the Mac Software category; I have a shell script that I use to check my internet connection. while [ [1] ]; do ping -c 4 www.espn.com date; sleep 120 ...

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    5
    Member #
    7230

    Shell script to run an app

    I have a shell script that I use to check my internet connection.

    while [ [1] ];
    do
    ping -c 4 www.espn.com
    date;
    sleep 120
    done

    I re-direct the output to a file, then I wrote a 'C' program to analyze the file and find all the "timeouts" and average the response times, etc.

    I have an app from Ookla called Speed Test that connects to a server and does a ping, download and upload and stores the info from each test, which you can download into a .csv file.

    Is there some way to get a script to run that app every so often, similar to the above with the built-in exe "ping"?
    I am running Sierra 10.12.4 on a mid-2010 iMac.
    Thanks,
    Alan Shank
    Woodland, CA, USA

  2. Ads

    Posts
    Many

  3. #2
    Super Moderator
    Join Date
    Aug 2011
    Location
    York, UK
    Posts
    2,314
    Member #
    3040
    Liked
    129 times
    You would have to use Automator and Calendar to schedule a script to run. It's a native macOS app, but I'm afraid I have no insider knowledge on how to set it up, but there is plenty of information floating around that will help you out.....Google is your friend!!
    'Deep Thought' - Mac Mini Late 2014 - macOS Sierra (10.12.4)
    'Orac' - MacBook Pro 13" Mid 2012 - macOS Sierra (10.12.4)
    'Marvin' - Hackintosh - Mavericks Server (10.9.5)
    'Holly' - Hackintosh - Mavericks Server (10.9.5)

    iPhone 6S - iOS 10.3.2
    iPad Pro 12.9" - iOS 10.3.2

Remove Ads

Ads

Posting Permissions

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

Similar Threads

  1. Replies: 0
    Last Post: 03-27-2014, 01:59 PM
  2. Script Grabs Hi-Res Icons For Any iOS App You Like
    By sparkyscott21 in forum iOS Apps
    Replies: 0
    Last Post: 04-29-2013, 03:39 PM
  3. typing underscore or under script with mac mini using mail
    By Leslie in forum New Member Introduction & Site Assistance
    Replies: 1
    Last Post: 03-01-2013, 09:50 AM
  4. Replies: 0
    Last Post: 05-22-2012, 05:56 PM
  5. Open Terminal Faster by Specifying a Shell
    By sparkyscott21 in forum Mac OS X
    Replies: 0
    Last Post: 04-30-2012, 07:18 PM

Contact Us
Back to top