Revision: 53465
http://brlcad.svn.sourceforge.net/brlcad/?rev=53465&view=rev
Author: brlcad
Date: 2012-11-06 02:32:28 +0000 (Tue, 06 Nov 2012)
Log Message:
-----------
remove the ability to invoke a shell script at the end of a frame since it's
not portable and is implemented using system(). removes the 'EOFrame' remrt
command.
Modified Paths:
--------------
brlcad/trunk/src/remrt/remrt.c
Modified: brlcad/trunk/src/remrt/remrt.c
===================================================================
--- brlcad/trunk/src/remrt/remrt.c 2012-11-06 02:28:33 UTC (rev 53464)
+++ brlcad/trunk/src/remrt/remrt.c 2012-11-06 02:32:28 UTC (rev 53465)
@@ -253,7 +253,6 @@
fd_set clients;
int print_on = 1;
-char *frame_script = NULL;
int save_overlaps=0;
@@ -1519,20 +1518,6 @@
bu_vls_addr(&fr->fr_after_cmd), cmd_tab );
}
- /* Run global end-of-frame script from 'EOFrame' in .remrtrc file */
- if (frame_script) {
- char *cmd;
- int len = strlen(frame_script) + strlen(fr->fr_filename) + 20;
- cmd = malloc(len); /* spaces and frame number */
- snprintf(cmd, len, "%s %s %ld", frame_script, fr->fr_filename,
- fr->fr_number);
- if (rem_debug) bu_log("%s %s\n", stamp(), cmd);
- len = system(cmd);
- if (len < 0)
- perror("system");
- (void) free(cmd);
- }
-
/* Final processing of output file */
if ( fr->fr_tempfile ) {
/* Delete temp file -- it is in framebuffer */
@@ -3838,33 +3823,6 @@
return 0;
}
-/* C D _ F R A M E
- *
- * Entry:
- * argc argument count
- * argv argument list
- *
- * Exit:
- * frame_script is set to the shell script to execute.
- *
- */
-int
-cd_EOFrame(int argc, char **argv)
-{
- if (argc < 2)
- return 1;
-
- if (frame_script) {
- (void) free(frame_script);
- frame_script = (char *)0;
- }
-
- if (!BU_STR_EQUAL(argv[1], "off") ) {
- frame_script = bu_strdup(argv[1]);
- }
- return 0;
-}
-
struct command_tab cmd_tab[] = {
{"load", "file obj(s)", "specify database and treetops",
cd_load, 3, 99},
@@ -3908,8 +3866,6 @@
cd_wait, 1, 1},
{"exit", "", "terminate remrt",
cd_exit, 1, 1},
- {"EOFrame", "EOFrame command|'off'", "Run command/script on dispatcher at
End Of Frame",
- cd_EOFrame, 2, 2},
/* FRAME BUFFER */
{"attach", "[fb]", "attach to frame buffer",
cd_attach, 1, 2},
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits