Commit Graph

32 Commits

Author SHA1 Message Date
Jeff Carr 1ff1045445 start fixing all this old junk 2024-03-01 21:45:30 -06:00
Jeff Carr da5e5f6455 add IsDir() 2024-02-22 15:29:58 -06:00
Jeff Carr c877c3886d updates after 4 years
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-02-10 16:31:19 -06:00
Jeff Carr 41fe4a4659 new home
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-25 00:39:14 -06:00
Jeff Carr 3233c9d6ab use 'go.wit.com/log'
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 20:01:07 -06:00
Jeff Carr cfd1909e16 unlink()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 13:35:32 -07:00
Jeff Carr 5d4ad13b77 track cmd failures
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 11:59:40 -07:00
Jeff Carr 30d3fe09b5 smarter go syntax for Run()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 10:49:01 -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 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 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 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 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 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 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