Action_Thermostats
Add_AtomRandomPerturbation
Add_RotateAroundBondAction
Add_SelectAtomByNameAction
Adding_Graph_to_ChangeBondActions
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
Automaking_mpqc_open
AutomationFragmentation_failures
Candidate_v1.6.0
Candidate_v1.6.1
ChangeBugEmailaddress
ChangingTestPorts
ChemicalSpaceEvaluator
Combining_Subpackages
Debian_Package_split
Debian_package_split_molecuildergui_only
Disabling_MemDebug
Docu_Python_wait
EmpiricalPotential_contain_HomologyGraph_documentation
Enable_parallel_make_install
Enhance_userguide
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Example_ManyWaysToTranslateAtom
Exclude_Hydrogens_annealWithBondGraph
FitPartialCharges_GlobalError
Fix_ChronosMutex
Fix_StatusMsg
Fix_StepWorldTime_single_argument
Fix_Verbose_Codepatterns
ForceAnnealing_goodresults
ForceAnnealing_oldresults
ForceAnnealing_tocheck
ForceAnnealing_with_BondGraph
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
ForceAnnealing_with_BondGraph_contraction-expansion
GeometryObjects
Gui_displays_atomic_force_velocity
IndependentFragmentGrids_IntegrationTest
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
JobMarket_unresolvable_hostname_fix
ODR_violation_mpqc_open
PartialCharges_OrthogonalSummation
PythonUI_with_named_parameters
QtGui_reactivate_TimeChanged_changes
Recreated_GuiChecks
RotateToPrincipalAxisSystem_UndoRedo
StoppableMakroAction
Subpackage_levmar
Subpackage_vmg
ThirdParty_MPQC_rebuilt_buildsystem
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Ubuntu_1604_changes
stable
Rev | Line | |
---|
[0b990d] | 1 | #!/usr/bin/perl
|
---|
| 2 |
|
---|
| 3 | # This script uses lwp-request from the libwww-perl package.
|
---|
| 4 | # The -o text option to lwp-request requires the HTML-Tree package
|
---|
| 5 | # and the HTML-Format package.
|
---|
| 6 |
|
---|
| 7 | require 5.002;
|
---|
| 8 |
|
---|
| 9 | $url = "http://www.emsl.pnl.gov/cgi-bin/ecce/basis_old.pl";
|
---|
| 10 | #$url = "http://localhost/cgi-bin/echo";
|
---|
| 11 |
|
---|
| 12 | $SIG{'INT'} = 'dokill';
|
---|
| 13 |
|
---|
| 14 | sub dokill {
|
---|
| 15 | kill 9, $child if $child;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | if ($#ARGV != 1) {
|
---|
| 19 | printf "need two arguments: email_address and basis_name\n";
|
---|
| 20 | exit;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | $email = $ARGV[0];
|
---|
| 24 |
|
---|
| 25 | $basis = $ARGV[1];
|
---|
| 26 |
|
---|
| 27 | $basisreq = $basis;
|
---|
| 28 | $basisreq =~ s/\+/%2B/g;
|
---|
| 29 | $basisreq =~ s/\(/\%28/g;
|
---|
| 30 | $basisreq =~ s/\)/\%29/g;
|
---|
| 31 | $basisreq =~ s/,/\%2C/g;
|
---|
| 32 |
|
---|
| 33 | $atoms = "H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr";
|
---|
| 34 | $atoms =~ s/ /+/g;
|
---|
| 35 |
|
---|
| 36 | $email =~ s/@/%40/;
|
---|
| 37 |
|
---|
| 38 | open(HOSTNAME,"hostname|");
|
---|
| 39 | $hostname = <HOSTNAME>;
|
---|
| 40 | close(HOSTNAME);
|
---|
| 41 | $hostname =~ s/\n//;
|
---|
| 42 |
|
---|
| 43 | $data = sprintf "BasisSets=%s&Atoms=$atoms&Codes=NWChem&Optimize=on&ECP=on&Email=%s", $basisreq, $email;
|
---|
| 44 |
|
---|
| 45 | $basisname = $basis;
|
---|
| 46 | $basisname =~ tr/A-Z/a-z/;
|
---|
| 47 | $basisname =~ tr/+/P/;
|
---|
| 48 | $basisname =~ tr/\*/S/;
|
---|
| 49 | $basisname =~ tr/\(/L/;
|
---|
| 50 | $basisname =~ tr/\)/R/;
|
---|
| 51 | $basisname =~ tr/,/_/;
|
---|
| 52 | $basisname =~ tr/ /_/;
|
---|
| 53 | $basisfile = "$basisname.nw";
|
---|
| 54 |
|
---|
| 55 | printf "Basis will be put in %s.nw ...", $basisname;
|
---|
| 56 |
|
---|
| 57 | open(HTTPD,"|lwp-request -m post -o text $url > $basisfile");
|
---|
| 58 | print HTTPD "$data";
|
---|
| 59 | close HTTPD;
|
---|
| 60 |
|
---|
| 61 | printf " done.\n";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.