Difference between revisions of "Stata"
From Storrs HPC Wiki
(→Running Stata via its interactive GUI) |
(→Running Stata via its interactive GUI) |
||
Line 22: | Line 22: | ||
# '''You must be on campus, or use the VPN, to run the Stata GUI'''. You can learn more about the VPN [https://remoteaccess.uconn.edu/vpn-overview/connect-via-vpn-client-2/ here] | # '''You must be on campus, or use the VPN, to run the Stata GUI'''. You can learn more about the VPN [https://remoteaccess.uconn.edu/vpn-overview/connect-via-vpn-client-2/ here] | ||
# If you are using Windows, then you must connect using [https://wiki.hpc.uconn.edu/index.php/X X2Go] software | # If you are using Windows, then you must connect using [https://wiki.hpc.uconn.edu/index.php/X X2Go] software | ||
− | # If you are using Linux or Mac, | + | # If you are using Linux or Mac, you can also use X2Go, or try using the following ssh command line: |
+ | <pre> | ||
+ | ssh -o requesttty=yes -CX YOUR-NETID@login.storrs.hpc.uconn.edu fisbatch | ||
+ | </pre> | ||
− | + | You will get a console like this. | |
Revision as of 14:38, 20 February 2019
Running Stata as batch Job
Here's an example as batch file that you can use to run Stata
#!/bin/bash #SBATCH --ntasks=1 #SBATCH --partition=general module purge module load stata/15-SE stata-se -b MyJob.do
This will run the Stata commands that you've placed in the file MyJob.do.
Running Stata via its interactive GUI
UNDER CONSTRUCTION
You can run Stata as a GUI, so that Stata runs on the HPC cluster, but it will display its GUI Window on your local desktop/laptop. You will need to meet these conditions
- You must be on campus, or use the VPN, to run the Stata GUI. You can learn more about the VPN here
- If you are using Windows, then you must connect using X2Go software
- If you are using Linux or Mac, you can also use X2Go, or try using the following ssh command line:
ssh -o requesttty=yes -CX YOUR-NETID@login.storrs.hpc.uconn.edu fisbatch
You will get a console like this.
Once you get a prompt so that you can enter commands, enter the following
module purge module load stata/15-SE xstata-se &
Here's is what it will look like:
Once Stata starts, you should see a window like this:
When are done with Xstata, please exit the GUI and exit the X2Go, to free up resources for others.