One can also use the system task scheduler to automatically invoke the script processor on a regular basis. I use this program to print documents overnight so that I can pick them up in the morning, freshly laser-printed and already at school! Don't tell anybody...
There are a few Menlo-specific hacks.
Syntax: java BackTalk [sJobFile]
sJobFile: Specifies job script to read commands from. It can be a URL
or a file path. Default: http://thibs.menloschool.org/~bean/print/jobs.txt.
Job script format: Put any of these commands in a text file.
Command | Description |
---|---|
COPYFILE source dest | Copies source to dest. |
DELETE file | Deletes file. |
DOWNLOAD url localfile | Downloads url to localfile. |
EXEC command | Executes command. |
MAILFILE file smtp rcpt | Mails file to rcpt using SMTP server smtp. |
MAILLOG smtp rcpt | Mails the log to rcpt via SMTP server smtp. |
MKDIR folder | Creates folder folder. |
PRINTFILE file printer port | Prints file to TCP/IP printer printer on port port. |
PRINTURL url printer port | Prints url to TCP/IP printer printer on port port. |
SLEEP time | Sleeps for time seconds. |
TOUCHFILE file | Updates the last access date on file to now. |
TOUCHURL url | Updates the last access date on url to now. |
If you merely wish to send a bunch of files to a printer (and bypass the script
structure), use the PrintSend program. Syntax: java PrintSend [port p]
[printer IP] [u url...] [f files...]
. Command line
options:
Command | Description |
---|---|
port p | Specifies the port which you want to print to. On HP LaserJet 4000s, this is 9100. Default: 9100. |
printer ip | Specifies the IP address of the printer. |
u url | Prints the URL to the printer. |
f file | Prints the file to the printer. |
Download a sample script.
Download a ZIP archive with source, binaries and scripts. (18K)