legalese / legalese.github.io

Static assets for legalese.com
https://legalese.com/
70 stars 27 forks source link

have xml2pdf-sleep.jsx run an `ls -lR` on the incoming folder #247

Closed mengwong closed 7 years ago

mengwong commented 7 years ago

currently, indesign/scripts/xml2pdf-sleep.jsx scribbles a heartbeat every few minutes, so we can tell that the robot is running by inspecting the i-am-running.txt in google drive's incoming folder.

Sometimes the robot appears to run slow. Meng suspects that there is a flaw in Google Drive: when a folder is shared with the robot two things can happen:

  1. the folder gets shared with the robot, and the robot sees it in Shared With Me, but the files within the folder do not show up.

  2. the files do show up, but the Google Drive plugin responsible for syncing folders and files fails.

if we could do the equivalent of a system("ls -lR incoming") into the i-am-running.txt file, we would be able to inspect the robot's on-disk filesystem without having to rely on the increasingly flakey Back To My Mac mechanism.

mengwong commented 7 years ago

ok, good effort by @jobchong but getting this one right required a bit of iterating at the console.

under Legalese Root / incoming if you open the file i-am-running.txt you should now see

.DS_Store Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-132254 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-133306 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-134607 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-140520 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-141726 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-141746 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-142023 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-142115 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-144643 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-145021 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-145044 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170202-152621 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc Copy%20of%20Legalese%20Demo%20Master%20NDA%2020170208-172146 Icon%0D README%20for%20Copy%20of%20Legalese%20Demo%20Master.gdoc i-am-running.txt Legalese%20Demo%20Master%20Copy%20NDA%2020170109-172905 Icon%0D README%20for%20Legalese%20Demo%20Master%20Copy.gdoc Legalese%20Pte.%20Ltd.%20-%20Legalese%20auto%20spreadsheet%20Angel%20Tranche%201%2020170118-175938 Icon%0D README%20for%20Legalese%20Pte.%20Ltd.%20-%20Legalese%20auto%20spreadsheet.gdoc Legalese%20Pte.%20Ltd.%20-%20Legalese%20auto%20spreadsheet%20Paying%20Anuj%20Contract%202%2020161216-225622 Contract%20for%20Service%203%20months.fail.txt Contract%20for%20Service%203%20months.xml Icon%0D README%20for%20Legalese%20Pte.%20Ltd.%20-%20Legalese%20auto%20spreadsheet.gdoc My%20Legalese%20Tutorial%202%20Dev%20Hello%20World%2020170209-181935 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20Dev%20Hello%20World%2020170209-182531 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20Dev%20Hello%20World%2020170209-184820 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020161018-161103 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020161110-183905 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020161113-212759 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170109-153901 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170110-042758 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170110-042932 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170110-134459 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170119-142510 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170119-142715 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170208-115307 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170216-230952 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170216-231015 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20NDA%2020170216-231134 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc My%20Legalese%20Tutorial%202%20Resignation%20of%20Volunteer%2020170306-184804 Icon%0D README%20for%20My%20Legalese%20Tutorial%202.gdoc