Skip to content

Instantly share code, notes, and snippets.

@Pallinder
Created June 22, 2011 10:56
Show Gist options
  • Save Pallinder/1039867 to your computer and use it in GitHub Desktop.
Save Pallinder/1039867 to your computer and use it in GitHub Desktop.
Alert after command has finished, lifehack.
/*
* Small hack I usually keep around, mainly use it like so (after placing it in my path)
* ./big_task_that_takes_a_while_to_run ; alert
* Once the task is done a small sound will be played letting you know its finished and you will no longer have to
* keep tabbing back to your console window to check if your process has finished or not.
* Released in public domain (all 5 rows of it)
*/
#include <stdio.h>
int main(void) {
printf("\a");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment