-
-
Save davidpelaez/74bd91249db2e031aa6d to your computer and use it in GitHub Desktop.
process error
This file contains 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
/Volumes/Low/David/.sm/exts/versions/test/head |
This file contains 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
FAIL(/Volumes/Low/David/.sm/exts/active/test/bin/hi): Unknown token 'myloop' | |
+# source file # function() | |
======================================================================================================================================= | |
nano +330 .sm/core/sm/shell/log/functions # __sm.log.fail | |
nano +90 .sm/core/api/shell/process/functions # process | |
nano +17 .sm/exts/active/test/bin/hi # /Volumes/Low/David/.sm/exts/active/test/bin/hi | |
nano +417 .sm/core/sm/shell/log/functions # __sm.actions.source | |
nano +185 .sm/core/internal/shell/extensions/execution/functions # __sm.extension.run | |
nano +151 .sm/core/sm/shell/core/initialize # /Volumes/Low/David/.sm/core/sm/shell/core/initialize | |
nano +41 .sm/bin/sm # /Volumes/Low/David/.sm/bin/sm | |
======================================================================================================================================= | |
I | ~ →1 » |
This file contains 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
#!/usr/bin/env bash | |
declare msg | |
trace_filter msg || set -o xtrace | |
msg="Hello World" | |
echo ${msg} | |
log info "information..." | |
log warn "mything" | |
timestamp show current | |
dates start 2014-01-01 end 2014-01-05 step day | |
log step "doing stuff" | |
# do some work | |
log step success | |
if process start name "myloop" timeout 2 command /bin/sleep 4 | |
then | |
log info "ok" | |
else | |
log warn "not ok" | |
fi | |
log info $? |
This file contains 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
api/time | |
api/dates | |
api/process | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment