Skip to content

Instantly share code, notes, and snippets.

@Pallinder Pallinder/alert.c
Created Jun 22, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.