Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Little curl/script help, please



I need to call curl to periodically retrieve a page via http and if a certain word or phrase is present, execute a shell script to start a carbon application.

I'm guessing that the curl part is probably a one or two-liner for someone knowledgeable. Would anyone care to offer a generic script of the type:

curl <URL> | [processing for the <magic words> ]
line to execute if magic words are present

or something similar?

This would need to run from cron without anyone logged in.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.