Changeset b7a600 in git
- Timestamp:
- Feb 13, 2017, 9:36:57 AM (6 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- c881d2b553a7c6f261ea2ee679a13bee8509daa9
- Parents:
- 7d44dd5555e888e65ba7e20c25fc77d0d98f0db197f6de6a93916b73681b340f749daec35ab96a72
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-02-13 09:36:57+01:00
- git-committer:
- GitHub <noreply@github.com>2017-02-13 09:36:57+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/surf.lib
r7d44dd rb7a600 141 141 142 142 string surf_call; i = 0; 143 if (isInteractiveShell()) 144 { 145 surf_call = "surf-alggeo "; 146 surf_call = surf_call + l + " >/dev/null 2>&1"; 147 "plotting with surf, image will appear in pop-up."; 148 149 i = system("sh", surf_call); 150 ">>SPECIAL_EVENT_START>>/tmp/surf.jpg<<SPECIAL_EVENT_END<<"; 151 return(); 152 } 143 153 if (isWindows()) 144 154 { … … 432 442 } 433 443 444 static proc isInteractiveShell() 445 "returns 1 if this SINGULAR instance runs in some container inside interactive shell; 446 0 otherwise" 447 { 448 string s = getShellOutput("whoami"); 449 return (s=="singularUser"); 450 } 451 434 452 static proc getShellOutput(string shellCommand) 435 453 "returns the console output when executing the given shellCommand"
Note: See TracChangeset
for help on using the changeset viewer.