-
-
Save rphillips/d0ba9abc625d86949ecf to your computer and use it in GitHub Desktop.
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
local child = require('childprocess') | |
local timer = require('timer') | |
local ch = child.spawn('bash', {'/Users/ryan.phillips/test.sh'}, {}) | |
ch.stdout:on('data', function(data) | |
p(data) | |
end) | |
ch.stderr:on('data', function(data) | |
p(data) | |
end) | |
timer.setTimeout(20000, function() | |
process.exit() | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/sh
while true ; do
date
sleep 10
done