Skip to content

Commit

Permalink
Improve Stata
Browse files Browse the repository at this point in the history
- Remove Vim swap files
- Improve PID based wait
- Use software license
  • Loading branch information
Morgan Rodgers committed Aug 14, 2019
1 parent 3b1524d commit 395d6d9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.*.sw*
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Stata
category: Interactive Apps
subcategory: GUIs
role: batch_connect
description: |
description: |
This app will laynch a [Stata] GUI on the [Owens cluster]. You will be able to interact with the Stata GUI
through a VNC session.
Expand Down
1 change: 1 addition & 0 deletions submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ script:
native:
resources:
nodes: "<%= bc_num_slots.blank? ? "1" : bc_num_slots.to_i %>:ppn=<%= ppn %><%= node_type %>"
software: 'stata'
Binary file removed template/.script.sh.erb.swo
Binary file not shown.
Binary file removed template/.script.sh.erb.swp
Binary file not shown.
7 changes: 3 additions & 4 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ module load stata

# Launch stat
xstata-mp
stata_pid=$(ps | grep 'xstata-mp')
while true; do
ls /proc/${stata_pid}
sleep 1/10
stata_pid=$(ps | grep 'xstata-mp' | awk '{print $1}')
while [[ -d "/proc/$stata_pid" ]]; do
sleep 1
done

0 comments on commit 395d6d9

Please sign in to comment.