Commit Graph

91 Commits

Author SHA1 Message Date
Jeff Carr 460baa0559 show err
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-15 00:27:15 -07:00
Jeff Carr a0db57edd2 more md5sum() debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 20:35:45 -07:00
Jeff Carr 8d1122b534 add shell.Cat()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 19:05:17 -07:00
Jeff Carr 2dc091f5bc import log
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:49:54 -07:00
Jeff Carr 6bfa200482 more debugging on replace
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:49:17 -07:00
Jeff Carr 177e665244 debugging for Write()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:45:05 -07:00
Jeff Carr d1ed400854 go-ssh workarounds for easier code automation
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 17:53:04 -07:00
Jeff Carr ee9a683f8c fix paths on Write()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 16:08:44 -07:00
Jeff Carr 9648439950 add a path wrapper for Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 16:06:32 -07:00
Jeff Carr 621be7d20a updates to Exec()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 10:02:52 -07:00
Jeff Carr 60671c1308 add linux / windows build files
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 04:20:29 -07:00
Jeff Carr 437afc794c more on windows/cygwin
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 20:29:29 -07:00
Jeff Carr db4ffc0fa9 more ssh tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 20:26:04 -07:00
Jeff Carr 49d36e287d start handling stupid Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 19:31:37 -07:00
Jeff Carr b375aa752a start adding ssh support
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 18:41:41 -07:00
Jeff Carr 4736714c08 add shell.Exec() to execute and never return
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-09 14:29:50 -07:00
Jeff Carr df1460aa69 only return wget on 200
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 09:38:27 -07:00
Jeff Carr 8c2168f588 also print STDERR to STDOUT
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 09:14:21 -07:00
Jeff Carr 2fcc7947db add a quiet flag and some other fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 01:15:37 -07:00
Jeff Carr b56c3fe1f6 quiet output
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 00:36:46 -07:00
Jeff Carr 8db41cc911 always append \n when writing a file
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 21:27:31 -07:00
Jeff Carr a12da586e9 handle int64
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 20:55:21 -07:00
Jeff Carr 93d3e13acc move wget into here
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 20:02:53 -07:00
Jeff Carr 758e7d157b more shortcut commands
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 19:32:12 -07:00
Jeff Carr d86e39f9ed call the callback function if defined
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 16:15:31 -07:00
Jeff Carr 091f89c221 always call the internal errorHandler()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 16:12:59 -07:00
Jeff Carr f59e1b1f84 add perl 'chomp'. too lazy to make it correct with regex
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 15:59:49 -07:00
Jeff Carr d7a665031c test callback()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 13:02:16 -07:00
Jeff Carr 8e258d67a3 make a error handling callback function
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 09:34:47 -07:00
Jeff Carr 223938d4bf return the output correctly. set debug mode
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-05 01:28:15 -07:00
Jeff Carr 04029988b1 capture the output for Run()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-04 20:20:15 -07:00
Jeff Carr 7e68be7419 oops. had the binary
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 17:03:25 -07:00
Jeff Carr 78c7f261f4 fix the example import path
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 17:02:29 -07:00
Jeff Carr 59c9bf88ca fix stderr (stdout was wrong too)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 02:46:27 +00:00
Jeff Carr 954470c34c correct stdin handling. stderr might still be broken
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 01:54:36 +00:00
Jeff Carr 8a5c9922e4 move to smarter log() and quiet spew()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 00:24:25 +00:00
Jeff Carr f1d7a816be add total byte counts to track accurate flushing of buffers
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-09 23:48:53 +00:00
Jeff Carr 026c59bc5c allow stdout redirection
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-09 22:20:26 +00:00
Jeff Carr 7048640de6 add Daemon(cmd, timeout)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-04-08 16:43:49 -07:00
Jeff Carr c449abf906 typo
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-04-07 21:16:56 -07:00
Jeff Carr a4e5ee76fb initial commit
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-04-07 21:15:01 -07:00