Skip to content

Instantly share code, notes, and snippets.

@davidpelaez
Last active August 29, 2015 14:01
Show Gist options
  • Save davidpelaez/74bd91249db2e031aa6d to your computer and use it in GitHub Desktop.
Save davidpelaez/74bd91249db2e031aa6d to your computer and use it in GitHub Desktop.
process error
/Volumes/Low/David/.sm/exts/versions/test/head
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 »
#!/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 $?
api/time
api/dates
api/process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment