added linux shell script - george.sh#2
Open
nemothorx wants to merge 4 commits intoryanmonro:masterfrom
Open
Conversation
Owner
|
Hi @EarthNative, I love the idea of a CLI version. I can't get it to run, as it turns out the time command has different parameters in Mac OSX. I don't currently have Linux installed anywhere, so haven't been able to test yet. I'll get back to you when I do. |
Author
|
time command? date? but yeah, it's a very first draft script - relies on "mpv" (fork of mplayer) for playing the audio, and I didn't put any fallbacks in. I got it working to local satisfaction and figured other bugs could be resolved as they're encountered! :D ...It also relies on some possibly non-universal things such as the ability for I've got an OSX install I'll poke at it with too :) |
Owner
|
Oh sorry, I meant date.
…On Mon, 21 Oct 2019 at 12:31 pm, Nemo Thorx ***@***.***> wrote:
time command? date?
but yeah, it's a very first draft script - relies on "mpv" (fork of
mplayer) for playing the audio, and I didn't put any fallbacks in. I got it
working to local satisfaction and figured other bugs could be resolved as
they're encountered! :D
...It also relies on some possibly non-universal things such as the
ability for sleep to handle floating point...
I've got an OSX install I'll poke at it with too :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AFQIXH64C2ASB4JCDFTKCPLQPUA5VA5CNFSM4JBTRIJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYZUXQ#issuecomment-544315998>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFQIXH7G5X32EX27S45X3BLQPUA5VANCNFSM4JBTRIJA>
.
|
modified: george.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[attempt 2, now with correct author metadata]
Relatively simple linux shell script added for local use. Timing calculations are different to the JS method, but the end result is within a fraction of a second for the beeps. Future improvements idea: limit how many loops it runs to suit intermittent running from cron.