Changeset 14891 for misc/runpugs
- Timestamp:
- 12/14/06 16:27:59 (2 years ago)
- Location:
- misc/runpugs
- Files:
-
- 4 added
- 3 modified
-
bin/termdispatcher2.pl (modified) (1 diff)
-
bin/termdispatcher3.pl (added)
-
bin/termserv3.pl (added)
-
lib/Web/Terminal/Dispatcher3.pm (added)
-
lib/Web/Terminal/Server/Session.pm (modified) (4 diffs)
-
lib/Web/Terminal/Server3.pm (added)
-
lib/Web/Terminal/Settings.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
misc/runpugs/bin/termdispatcher2.pl
r14885 r14891 21 21 my $ip="127.0.0.1"; 22 22 (my $reply,my $prompt,my $histref) = 23 &Web::Terminal::Dispatcher::send($id,$ip, 0,1,$cmd);23 &Web::Terminal::Dispatcher::send($id,$ip,1,1,$cmd); 24 24 print $reply; 25 25 print "\nHistory\n"; -
misc/runpugs/lib/Web/Terminal/Server/Session.pm
r14885 r14891 106 106 $pugs->errmode(sub {kill 9,$obj->{'pid'}; }); 107 107 #$pugs->errmode('die'); 108 print "readlines()\n" if $v;108 # print "readlines()\n" if $v; 109 109 while ($i<$Web::Terminal::Settings::nlines) { 110 110 my $char=''; … … 112 112 my $j=0; 113 113 while ($char ne "\n" and ($j<$Web::Terminal::Settings::nchars)) { 114 print "getting...\n" if $v;114 # print "getting...\n" if $v; 115 115 $char=$pugs->get(); 116 print "got $j>$char<\n" if $v;116 # print "got $j>$char<\n" if $v; 117 117 $j++; 118 118 last if $char eq ''; … … 241 241 $pty = new IO::Pty 242 242 or do { 243 die $!; 243 244 return ( -1, 0 ); 244 245 }; 245 # die $!;246 # 246 247 binmode $pty, ":utf8"; 247 248 ## Execute the program in another process. … … 274 275 ## Execute requested program. 275 276 exec @cmd 276 or ($error=1);#die "problem executing $cmd[0]\n"; 277 or die "problem executing $cmd[0]\n"; 278 # or ($error=1); 277 279 } 278 280 } # end child process -
misc/runpugs/lib/Web/Terminal/Settings.pm
r14885 r14891 20 20 quit_pattern 21 21 quit_message 22 reset_command 22 23 filter 23 24 filter_pattern … … 25 26 host 26 27 nsessions 28 npreloaded_sessions 27 29 nsessions_ip 28 30 timeout_idle … … 53 55 our @commands=( 54 56 '/usr/bin/nice /home/andara/pugs-rel/pugs -I/home/andara/pugs-rel/blib6/lib', 55 '/usr/bin/ nice /usr/bin/pugs'57 '/usr/bin/pugs' #/usr/bin/nice 56 58 ); 57 59 #Dev … … 65 67 our $init_pattern='(\>\s+)'; 66 68 our $quit_command=':q'; 69 our $reset_command=':r'; 67 70 our $server='termserv2.pl'; 68 71 … … 73 76 our $tmp_path='/home/andara/apache/data/tmp/'; 74 77 our $log_path='/home/andara/apache/data/log/'; 75 our $daemon= 1;78 our $daemon=0; 76 79 our $port=2057; 77 80 our $host='localhost'; … … 79 82 our $nsessions=50; 80 83 our $nsessions_ip=10; 84 our $npreloaded_sessions=3; 81 85 82 86 our $timeout_idle=600; # was 600
