[go: up one dir, main page]

File: README

package info (click to toggle)
suck 4.3.4-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,148 kB
  • sloc: ansic: 12,085; perl: 528; sh: 363; makefile: 348; java: 144
file content (48 lines) | stat: -rw-r--r-- 1,991 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Recently, I decided to learn a bit about JAVA programming.  So, to do this,
I threw together a GUI for suck, primarily as a learning experience.

This GUI basically takes the status and error messages from a suck run,
and puts them in scrollable areas.   The only tough part to this was
how to handle the BPS and count parts of the display, since they
would very quickly overflow any display buffer I had.  Due to the way
suck prints them out, there wasn't an easy way to separate these
from the rest of the status messages.  So, I added the -G option.

The -G option changes the BPS and Count output to a format easier
to pick out in a program.  It outputs "---BPS+++NR".  This is used
by my Java program so that it can display the BPS and count in a
separate window.

If you want to use the GUI - I have provided both the Java source
code, and the .class files, in case you don't have a java compiler.
You'll still to get the Java runtime kit.  For linux, go to
<http://www.blackdown.org/java-linux/Mirrors.html>.  For other
OSes, try <http://www.javasoft.com/>, the official Sun Site.

Because Suck.java calls a child program, it can't run as an applet.
This is a built-in security measure in java.

The following is the script I use to run it. 
------------------------------------------------------------------
#!/bin/sh
CLASSPATH="/home/boby/doNews/"
export CLASSPATH;

/usr/local/jdk1.1.6/bin/java Suck ${CLASSPATH}/get.news.wn.sh
------------------------------------------------------------------

You'll need to change 3 things:

1. CLASSPATH=      
this needs to point where the Suck*.class files live.

2. /usr/local/jdk1.1.6/bin/java
this needs to point to where the java runtime executable lives.

3. ${CLASSPATH}/get.news.wn
this needs to point to the shell/program you normally would
use to run suck.  In my case, I keep the class files in the
same directory as the rest of my suck stuff.

If any one wants to expand this, feel free to, and I'll
include it in future version.