Skip to content
Snippets Groups Projects
Commit d9541279 authored by Ismail Khalfaoui's avatar Ismail Khalfaoui
Browse files

Update file README.md

parent 9710e746
Branches
No related tags found
No related merge requests found
### **Run the Script using `bashrc`** ### **Run the Script**
1. **Change the path of the folder to monitor**:
By default it is located at the path of `wandb_sync_daemon.py`/wandb
```python
path_to_monitor = os.path.join(
os.path.dirname(__file__), "wandb"
) # Replace with the path you want to monitor
1. **Edit your `~/.bashrc` file**:
Open your `.bashrc` file:
```bash
vim ~/.bashrc
``` ```
2. **Add the following line at the end of the file**: 2. **Run the following command**:
Add this to run the script every time you log in:
```bash ```bash
nohup python3 /path/to/wandb_sync_daemon.py > ~/wandb_sync.log 2>&1 & nohup python3 /path/to/wandb_sync_daemon.py > ~/wandb_sync.log 2>&1 &
``` ```
This will start the `wandb_sync_daemon.py` script automatically each time you start a new shell session. This will start the `wandb_sync_daemon.py` script automatically each time you start a new shell session.
3. **Apply changes**:
Reload your `.bashrc` file:
```bash
source ~/.bashrc
```
--- ---
## **How It Works** ## **How It Works**
...@@ -30,6 +25,14 @@ ...@@ -30,6 +25,14 @@
--- ---
## **How to Test it**
- The file `run.py` provides a minimal wandb offline run to log.
```bash
python3 run.py
```
---
## **Stopping the Script** ## **Stopping the Script**
To stop the script, you can kill the process: To stop the script, you can kill the process:
1. Find the process: 1. Find the process:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment