-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bee7deb
commit 7139381
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# should be run from root directory of PatentChem repo | ||
|
||
for ((i=2001; i<=2023; i++)) | ||
do | ||
# Create a new tmux session | ||
session_name="dl-$i" | ||
tmux new-session -d -s "$session_name" | ||
|
||
# Send the command to the session | ||
tmux send-keys -t "$session_name" "conda activate patents; python download.py --years $i --data_dir /data/patents_data/ --no_uncompress" Enter | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# should be run from within patents data directory (directory containing folder for each year) | ||
|
||
for ((i=2001; i<=2023; i++)) | ||
do | ||
# Create a new tmux session | ||
session_name="tar-$i" | ||
tmux new-session -d -s "$session_name" | ||
|
||
# Send the command to the session | ||
tmux send-keys -t "$session_name" "tar -czf $i.tar.gz $i" Enter | ||
done |