Changeset 2949 in Sophya
- Timestamp:
- Apr 27, 2006, 9:34:01 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/ProgPI/piapp.cc
r2945 r2949 49 49 \verbatim 50 50 csh> spiapp -h 51 PIOPersist::Initialize() Starting Sophya Persistence management service 52 SOPHYA Version 2.0 Revision 0 (V_Mai2006) -- Apr 26 2006 17:17:22 cxx 51 PIOPersist::Initialize() Starting Sophya Persistence management service 52 SOPHYA Version 2.0 Revision 0 (V_Mai2006) -- Apr 26 2006 17:17:22 cxx 53 53 54 54 piapp: Interactive data analysis and visualisation program 55 Usage: piapp [-nored] [-nosig] [-nosigfpe] [-nosigsegv] [-hidezswin] 56 [-small] [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] 55 Usage: piapp [-nored] [-termread] [-term] [-hidezswin] [-small] 56 [-nosig] [-nosigfpe] [-nosigsegv] 57 [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] 57 58 -nored : Don't redirect stdout/stderr to piapp console 59 -termread : Read commands on terminal (stdin) 60 -term : equivalent to -nored -termread -small 61 -hidezswin : Hide Zoom/Stat/ColMap window 62 -small : Create small size main piapp window 58 63 -nosig : Don't catch SigFPE, SigSEGV 59 64 -nosigfpe -nosigsegv: Don t catch SigFPE / SigSEGV 60 -small : Create small size main piapp window61 -hidezswin : Hide Zoom/Stat/ColMap window62 65 -tmpdir TmpDirectory: defines TMDIR for temporary files 63 66 -help2tex: Create a LaTeX help file (piahelp.tex) 64 -exec file [args] : Execute command file 67 -exec file [args] : Execute command file (last option) 65 68 66 69 \endverbatim … … 76 79 else { 77 80 cout << "\n piapp: Interactive data analysis and visualisation program \n" 78 << " Usage: piapp [-nored] [-nosig] [-nosigfpe] [-nosigsegv] [-hidezswin] \n" 79 << " [-small] [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] \n" 81 << " Usage: piapp [-nored] [-termread] [-term] [-hidezswin] [-small] \n" 82 << " [-nosig] [-nosigfpe] [-nosigsegv] \n" 83 << " [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] \n" 80 84 << " -nored : Don't redirect stdout/stderr to piapp console\n" 85 << " -termread : Read commands on terminal (stdin)\n" 86 << " -term : equivalent to -nored -termread -small \n" 87 << " -hidezswin : Hide Zoom/Stat/ColMap window \n" 88 << " -small : Create small size main piapp window \n" 81 89 << " -nosig : Don't catch SigFPE, SigSEGV \n" 82 90 << " -nosigfpe -nosigsegv: Don t catch SigFPE / SigSEGV \n" 83 << " -small : Create small size main piapp window \n"84 << " -hidezswin : Hide Zoom/Stat/ColMap window \n"85 91 << " -tmpdir TmpDirectory: defines TMDIR for temporary files \n" 86 92 << " -help2tex: Create a LaTeX help file (piahelp.tex)\n" 87 << " -exec file [args] : Execute command file \n"93 << " -exec file [args] : Execute command file (last option)\n" 88 94 << endl; 89 95 return 0; … … 96 102 { 97 103 int ofa; 98 bool fgfpe, fgsegv, fgred, fghidezsw, fgexec, fgsmall ;104 bool fgfpe, fgsegv, fgred, fghidezsw, fgexec, fgsmall, fgtermrd; 99 105 100 106 SkyTInitiator skyinit; … … 111 117 bool fgtmp = false; 112 118 fgsmall = false; 119 fgtermrd = false; 113 120 string tmpdir; 114 121 string exfc; … … 119 126 if (strcmp(arg[ka],"-nored") == 0) fgred=false; 120 127 else if (strcmp(arg[ka],"-nosig") == 0) fgfpe=fgsegv=false; 128 else if (strcmp(arg[ka],"-termread") == 0) fgtermrd=true; 129 else if (strcmp(arg[ka],"-term") == 0) 130 { fgred=false; fgtermrd=true; fgsmall=true; } 121 131 else if (strcmp(arg[ka],"-nosigfpe") == 0) fgfpe=false; 122 132 else if (strcmp(arg[ka],"-nosigsegv") == 0) fgsegv=false; … … 219 229 // Creation du lecteur de commande sur terminal (avec GNU readline) 220 230 PIACmdReader cmdrdr(app); 221 cmdrdr.start();231 if (fgtermrd) cmdrdr.start(); 222 232 223 233 int rc = 0; … … 284 294 285 295 app->RedirectStdOutErr(false); 286 cmdrdr.cancel();296 if (fgtermrd) cmdrdr.cancel(); 287 297 288 298 // On de-charge le module sopiamodule et fitsbtadapter
Note:
See TracChangeset
for help on using the changeset viewer.