8 # Location of needed files
10 $pose2_exe = $ENV{'POSE2_EXE'};
11 $pose3_exe = $ENV{'POSE3_EXE'};
12 $pose_prc = $ENV{'POSE_PRC'};
15 if (getopts
('23qmwo:r:d:v') != 1)
24 &add_app
("$pose_prc/Quickword.PRC");
28 &add_app
("$pose_prc/MiniCalc.prc");
32 &add_app
("$pose_prc/WordSmith.PRC");
40 $run_prog .= "-run_app $opt_r";
45 @files = `/bin/ls -1 $directory/*.pdb`;
47 for ($i=0; $i <= $#files; $i++)
49 $add_file = "$files[$i]";
51 &add_app
("$add_file");
57 $pose_exe = $pose3_exe;
61 $pose_exe = $pose2_exe;
65 print "\nPose not found: Please set \n POSE2_EXE\n or POSE3_EXE\n";
70 print ("\n$pose_exe $apps_load $run_prog &\n\n");
74 system ("$pose_exe $apps_load $run_prog &");
81 print "\nUsage: getopt [ -m ] [ -q ] [ -w ] [ -o <PrcFile> ] [ -r <RunProg> ]\n";
82 print " -2 Runs pose version 3.2 [ current default ]\n";
83 print " -3 Runs pose version 3.3\n";
84 print " -d Load all PDB files in specified directory\n";
85 print " -m Load MiniCalc PRC file\n";
86 print " -q Load QuickWord PRC file\n";
87 print " -w Load WordSmith PRC file\n";
88 print " -o <PrcFile> Other PRC files to load\n";
89 print " -r <RunProg> Program to run on startup\n";
90 print " -v Display the command instead of running\n\n";
104 $apps_load = "-load_apps ";
107 $apps_load .= "$new_app";