I writing some scripts in Google Colab. I am not using Google Colab pro - just the basic version.
Part of the flow requires me to execute a binary command (i.e. bash command) - to set something running in the background. The issue is this command never completes, and so I cannot execute any more cells below.
The flow I need in the Google Colab is:
- Run the binary (
!PATH_TO_BINARY_IN_GOOGLE_DRIVE) - After a set time (30 seconds) the bash command in 1. is moved to a background process (or put to sleep).
- The user of the google colab notebook can then proceed to run following cells
So far I have tried two things:
!(PATH_TO_BINARY_IN_GOOGLE_DRIVE&; sleep 40). This does not work in google colab, throws a syntax error around;.- Write a small python script to run the binary and the sleep. The binary executes but does not sleep.
I am open to any solution that can get this working - i.e. allows me to run a binary in the background on Google Colab.