The following programs are /u/uc/bin or /usr/local/tcc/bin. Your work account path should be set up so that you can use all of these programs without knowing where they are.
acct [username] |
Displays a hello message to the account executing it, and a message indicating whether or not account username exists.
acctpkg |
This script is designed for printing some TCC account documentation for a new user. When you open a new account for a user, you can run this command, and it will print the following documents:
Access and Usage Policy
Policy on Computer Accounts
Rates charged for various resources
Account Termination Notice
consume_log [queue-or-action supply part-num quantity] |
Used to log consumables, such as batteries, blue-wipes, paper, and toner cartridges.
The program asks how many of the supply were used and then asks for confirmation. If the arguments to consume_log are wrong, it will prompt for correct queue and supply names. A list of the correct names will print out if you enter an incorrect name.
If you already know the answers to all the questions, you can supply them as arguments to the command. For example, if you just used one ream of EXP8511 paper for the speare5 printer, you can log it with this command:
consume_log speare5 paper EXP8511 1 |
To add supplies to the record (like when a new load of paper arrives and has been stowed) use the special queue name add. (With the current coding of consume_log) If the reported count in the confirmation dialog is wrong accept the reported count (as you can't correct it just by answering in the negative) and then set the correct correct count as described next.
To adjust (not to add) a supply count (like after doing the above add and finding the count was off) use the special queue name set.
From time to time someone will use the wrong counting method in recording the use of a consumable and you will end up trying to log the use of a supply whose count is zero! When this happens you will need to go back to the supplies area and manually count stock and set the correct number into the DB.
consume_report [yyyymmdd] [yyyymmdd] |
This is script reports how many and what kind of consumables have been used between two dates of the form YYYYMMDD. It also reports how many of each supply remain. If no dates are entered the default is to report from two weeks ago to the current date.
For example, to find out what has been used between December 1, 1999 and March 31, 2000:
consume_report 19991201 20000331 |
docp filename |
This command automates printing out official TCC publications from the /u/www/docs/tcc/help/pubs/ directory. For example, to print out the welcome document:
docp welcome |
It will print out the specified filename on speare5, duplex, with no header. docp with no arguments prints out a list of available help files.
Changes the ownership of appropriate devices to username. If the argument is omitted, the device will become owned by root.
Scott Bucholz says (Dec. 6, 1999): I think I have a fix for bad INBOX stuff that's going on. It's a shell script run by the user from Linux. Make sure that they aren't running their mailer at the time that they run the fix and I would wait a second or two before reading their mail. I have it linked so all they need to do at a prompt is:
~uc/bin/fix_inbox |
and that should take care of it.
Fixes user problems with Netscape's cache. It will:
Clean out the cache files in their account
Change the CACHE_DIR entry in their .netscape/preferences file to change the cache to /tmp/`whoami`-cache, so their account won't fill up with cache files again.
Run it from the user's account as:
/u/uc/bin/fix_netcache |
fixemall [option…] |
Deletes all files that match the regular expression in the FIXTYPE environment variable.
-h displays help.
-t cleans up .log and .aux files from TeX and LaTeX.
-v turns on verbose mode, listing all files being deleted.
Must be run on ldap0.
Usage:
frc accountname [date] |
If no date is given, the script returns the status of the account's off campus modem privileges, up to six entries for the user from the freeradius logs, and up to eight of the most recent entries overall from the freeradius logs.
If a date is given, the script returns the status of the account's off campus modem privileges and any entries for the user from the freeradius logs on the specified date.
Freeradius logs record both off-campus modem and VPN authentication activity.
For notifying users that they have failed to logout. When you find someone who left themselves logged in, run this program from their account and then log them out. It will send them a little email message explaining briefly how to log out and what happened. You have the option to include a one line message in the mail.
To run glo as a MS Windows user go to \\userhost\tedium\accounts\u\uc\bin\ and run it from there. Or log into a linux box, and do this: ~uc/bin/glo user host , where user is the username, and host is the hostname of the machine they were on.
lprcredit must be run by a user in the tcc group on printhost because /fs/lprng/pagelogs/ is exported read-only.
Released by Schlake, Wed May 13 12:43:47 1998
lprcredit lives in /fs/tcc/bin and is used for refunding print related costs due to errors in the TCC print system. It is not to be used for refunding problems related to "pilot-error". It has to be run from printhost due to the READ-only nature of the file system it's on.
Before issuing a refund for any print job be sure you get all pages of the print job the person wants a refund on (we have to keep the pages).
You will be asked a series of questions when you run lprcredit, and it will do some minimal consistency checking. Here is an example run of lprcredit:
wcolburn@infohost<~>$ lprcredit
LPR credit -- interactive mode
What user needs pages refunded? schlake
What queue was the print job from? spruce
last 5 print jobs for schlake on speare16:
rainbow|schlake|speare16|2|Mon May 04 09:08:45 1998|894294525|[stdin]
rainbow|schlake|speare16|6|Tue May 05 09:42:01 1998|894382921|[stdin]
uvula|schlake|speare16|1|Thu May 07 12:55:04 1998|894567304|[stdin]
Was a banner page printed for this job? n
How many pages were physically printed? 6
Generating credit:
user name: schlake
real name: Schlake ( William Colburn )
print queue: speare16
banner pages: 0
pages: 6
Should I make this credit? y
wcolburn@infohost<~>$
|
You should check the print job you are crediting was actually printed. If you don't see it in the list of recent print jobs then it probably wasn't printed. Since banner pages are counted differently than other pages, don't count them with the other pages. Don't adjust the number of pages to account for color/transparency being a different price, the software will take care of it.
The only fatal error is if it can't write to “/fs/plp/credit.log”. If that happens, it is probably a file permission problem. Make sure you are on printhost. The error message will tell you what needs to be done to fix the file, and anyone with root access to printhost can fix it.
qcheck |
Checks the queues of the printers all at once and outputs to less. The list of printers queues is out of date. Gives a bit nicer output than lpq -Pall | more.
It will show the status of all of the printer queues at once. It's a good idea for all of the opening UC's to run it so that any stuck queues can be resolved and any stalled queues can continue.
queuecheck |
queuecheck is a script that runs lpq on all the printers, and echoes the results. Running qcheck will pipe the results of queuecheck through less to neaten the output a bit.
Printmon is a graphical interface to the lpq and lprm commands, allowing you to view and manage the queue for any TCC printer. Click any of the radio buttons on the left side and the queue will appear in the large window.
printmon is set to refresh from lpq every five seconds for the printer that is selected. By selecting a printer, and typing in a job number into the enter job number entry box, that numbered job on the selected printer will be removed via lprm.
rcx [option …] hostname [command …] |
rcx lets you toss a cookie to another machine, and then start a process on that machine. A safer replacement for xhost +machine. It even sets your DISPLAY variable.
Options include:
| -debug | Output error messages and don't fork. |
| -k | Use Kerberos rcmds. |
| -rl | Open a local xterm and rlogin. |
| -norsh | Don't use rsh. Use Kerberos if -k, otherwise telnet . |
| -l | Log in as the specified user. |
| -quiet | Close standard output and standard error streams from the child unless in debug mode. |
| -ppath | Prepend path to all X commands on the remote machine. |
rogue_uc does the same thing as rogue except at the end it goes and runs ucsh kill -9 on all of the rogue processes. Obviously, this will only work if you are in group tcc. I recommend running rogue and checking the output to make sure that there are not any processes running which “appear” rogue but should not be killed. Special permissions are not required because said permissions already exist on ucsh.
rx [option…] hostname [command …] |
This is the same as Section 11.9.16, “ rcx ”, but it does not toss the cookie before running your command.
setPrinter.py |
Should be run on a MS Windows machine.
setPrinter.py is to be run on a Windows machine. It will run under Linux, but there's not much point to it.
It generates (in the directory you run it in) a registry file that sets the default printer to the one closest to the machine it is run on. It is meant to be used at login (or install-time) to set up printers, as a patch for the printing system until LDAP is ready to use.
sz |
Allows you to send files using several modem protocols. Has about a million options and settings.
uc [option…] |
Allows you to get information about UCs. Options include:
| -m | Displays a map of Speare. |
| -w | Lists all the UCs currently logged in, and the machines they're logged into. |
| -s | Displays the current UC work schedule. |
| -work | Shows the UC currently working, and the total duration of their shift. |
| -work login | Shows the hours that the UC whose login name is login is scheduled to work today. NoteThe source for this command lives in /u/uc/bin/src/ and is under RCS control. There's a Makefile there that will take care of putting the executable where it needs to go (/fs/packages/util/bin/uc). |
uclock ["message"] |
For locking the UC workstation when you have to leave the desk. It's a good idea to use the optional "message" to display that message on your screen while you're gone, so users will know where you've gone.
If uclock reports the error xscreensaver-command: there's probably no screensaver running on display :0.0, or there is an xscreensaver process owned by another user on that system that did not terminate correctly. To fix it, run xhost +localhost followed by xscreensaver-command -exit (do not use a kill -9 on xscreensaver as that is likely to hose any virual window manager you may be running -- see the man page on xscreensaver for details), then you can try uclock again.
welcomeprint |
There is a README file in /u/uc/bin/welcome/.
OK, I (Jake Kestner) wrote a getto bash script that prints out the Welcome to the TCC packets. All it does is print the contents of /u/uc/bin/welcome/pages/ So, it should be really easy to update the welcome packets now.
If you have /u/uc/bin in your path (which you, as a UC, really should), all you need to do is type welcomeprint. This will print out 1 copy of the welcome document to speare16 (or whichever printer you specify on the command line). You can set a personalized default printer by declaring a variable WELCOMEPRINTER in your .bashrc. I didn't want it to bog down speare5 printing all of the pdfs. It will run from any machine.
There is also a welcomeprint-10 that will print 10 of these, but only if run from infohost.
wmlpr [-h | --help] [-n numcopies] [-P printer | -pdf filename | -ps filename] filename.ps |
This command is used to print things on the color printer, by default, using that nifty TCC watermark. All our signs must be printed on the TCC watermark. (If you see a sign up in a TCC area which isn't please remove it and check with Ray to see if it should be made official.)
The default file type is Post Script though you can override that with the flag for a PDF file. The optional numcopies argument can be used to get multiple copies. For example, to print five watermarked copies of file foo.ps on the color printer:
wmlpr -n 5 foo.ps |