Changeset 97f6de in git
- Timestamp:
- Feb 9, 2017, 11:40:13 AM (6 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- b7a600dbf47e619fa9c9d7f852021b2894df4489
- Parents:
- 7d44dd5555e888e65ba7e20c25fc77d0d98f0db1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/surf.lib
r7d44dd r97f6de 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.