Changeset 24601 for main/trunk/greenstone2/bin/script
- Timestamp:
- 2011-09-15T18:28:42+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gs-magick.pl
r24600 r24601 128 128 #my $result = `$magick_cmd`; # This way will trap STDOUT into local variable 129 129 130 my $result = ""; 130 131 if (!open(PIN, "$magick_cmd |")) { 131 132 print STDERR "*** Can't run $magick_cmd. Error was: $!"; 133 } else { 134 while (defined (my $imagick_output_line = <PIN>)) { 135 $result = $result.$imagick_output_line; 136 } 137 close(PIN); 132 138 } 133 my $result = "";134 while (defined (my $imagick_output_line = <PIN>)) {135 $result = $result.$imagick_output_line;136 }137 close(PIN);138 139 139 140 # Perl Special Variables http://www.kichwa.com/quik_ref/spec_variables.html
Note:
See TracChangeset
for help on using the changeset viewer.