Jump to content
Sign in to follow this  
Followers 0
vrondena

how create script for sleep wake control

2 posts in this topic

Recommended Posts

hello, does anyone know how to create terminal script or automator executable for the command "pmset -g log | grep -e" Sleep "-e" Wake "
without having to type it manually every time, thanks

Share this post


Link to post
Share on other sites
Advertisement

Just paste your command into a text file; do it from Terminal with vi if you want. Save your file with a .sh extension (or any other shell extension of your liking), chmod + x the file, move the file to one of the default path's folders (or add the residing folder to the path) and Bob's your uncle!

Edited by Hervé

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

×