xref: /petsc/lib/petsc/bin/saws/getSAWs.bash (revision 59e7829ccff665372c1d09026a11beea9cbf8624)
1#!/bin/bash
2#
3#  getSAWs.bash [dir1[/dir2[/variablename]]]
4#
5#
6if [ "${SAWS_HOST}foo" == "foo" ]; then export SAWS_HOST=localhost; fi
7if [ "${SAWS_PORT}foo" == "foo" ]; then export SAWS_PORT=8080; fi
8if [ $# == 1 ]; then
9  export mem=$1;
10else
11  export mem="*";
12fi
13
14curl --silent --show-error "${SAWS_HOST}:${SAWS_PORT}/SAWs/${mem}"
15