(-: or whenever I update it :-)
arg list too long
"
error message?
Xd
is a handy tool for
mucking about with binary files.
When enabled by setting the variable filec, an interactive C shell can complete a partially typed filename or user name. When an unambiguous partial filename is followed by an ESC character on the terminal input line, the shell fills in the remaining characters of a matching filename from the working directory.
If a partial filename is followed by the EOF character (usually typed as CTRL-d), the shell lists all filenames that match. It then prompts once again, supplying the incomplete command line typed in so far.
When the last (partial) word begins with a tilde (~), the shell attempts completion with a user name, rather than a file in the working directory.
The terminal bell signals errors or multiple matches; this can be inhibited by setting the variable nobeep. You can exclude files with certain suffixes by listing those suffixes in the variable fignore. If, however, the only possible completion includes a suffix in the list, it is not ignored. fignore does not affect the listing of filenames by the EOF character.
So how do you use this:
In your ~/.cshrc file, add the following (this assumes you are on a Unix machine and run the C shell - link is meant to be a local link):
You can customize the file name completion function via the fignore variable as follows:
For example, this setting tells filec to ignore files ending in extensions .o, .out and .bak.
One caveat to remember about file name completion that gets me everytime I go back to a PeeCee, is that on DOS/Windows, hitting the ESC key clears the pending command line, instead of completing it, DOH!
[Top]In your ~.cshrc file, add the following (this assumes you are on a Unix machine and run the C shell - link is meant to be a local link):
Gdiff provides a graphical browser for inspecting two files and the differences between them. It also provides facilities for merging the files into a third version. If file1 (file2) is a directory, then a file in that directory with the name file2 (file1) is used. If file1 (file2) is -, then that file is read from standard input.
The display of the two files consists of four parts: two panes of text containing the files being inspected, a scroll bar separating them, and a "text bar" which provide an overview of both files.
Lines of text which are not present in both files are annotated in color to indicate their status. If a line is present in file1 but not in file2, the line is drawn in red. This corresponds to a line which is marked as a "d" line by diff(1). If a line is present only in file2, the line is drawn in green. This would be an "a" line. Lines in one file which replace lines in the other file are drawn in yellow, indicating a "c" line.
Note: gdiff is part of eoe1.sw.unix (Irix 5.x) or eoe.sw.unix (Irix 6.x).
Here's a picture of gdiff in action.
[Top]On most newer desktop workstations, you can read the serial number of the machine with the following shell script:
#!/bin/sh # serial: Reads serial number on desktop machines: /usr/etc/netstat -ia | grep 08:00 | sed 's/ *//;s/://g' | head -1 | tr '[a-f]' '[A-F]'
You can customize the venerable old jot program through the use of the jot resource file.
Just like at home, you too can have the trash collector automatically empty your dumpster every week. As you recall, the dumpster directory is the place where files get removed to when you use Remove from the desktop. This allows you to go back to the dumpster and retrieve erased files if needed. However, unless cleaned out periodically (and who does that!) it'll fill up your hard disk with erased files. By creating a cron job, for each active user on a system, you can automatically clean out the dumpster on a weekly basis with the following crontab entry:
# File: /usr/spool/cron/crontabs/$USER # Do things automatically for: $USER # Empty ~/dumpster every Sunday morning # min hour daymo month daywk job #00 2 * * 0 /usr/lib/desktop/telldesktop 'empty dumpster' #00 2 * * 0 (cd $HOME/dumpster; /sbin/rm -rf *)
It is really quite easy, you'll need the PBM Plus image tools as well as the following directions.
In summary:
giftoppm face.gif | ppmtopgm |pgmnorm |pnmscale -xy 48 48 |pgmtopbm > face.pbm pbmmake -white 48 48 |pnmpaste face.pbm 0 0 |pbmtoicon |tail +3 |compface > face.xface
Here's my X-face ---->
[Top]
Trying to view or print online manual pages (man) outside of a man-page viewer (like xman) can be difficult. Here's a simple method to get plain text from a manual page.
Pipe the output of man through the col filter to remove the man-page formatting characters to produce plain text output. For example, processing the man-page for the hinv command produces:
> man hinv | col -bx HINV(1M) HINV(1M) NAME hinv - hardware inventory command SYNOPSIS hinv [ -v ] [ -s ] [ -c class] [ -t type] DESCRIPTION hinv displays the contents of the system hardware inventory table. This table is created each time the system is booted and contains entries describing various pieces of hardware in the system. The items in the table include main memory size, cache sizes, floating point unit, and disk drives. Without arguments, the hinv command will display a one line description of each entry in the table. The -v option will give a more verbose description of some items in the table. The -c class option will display items from class. Classes are processor, disk, memory, serial, parallel, tape, graphics, and network. The -t type option will display items from type. Types are cpu, fpu, dcache, icache, memory, and qic. The -s option, when used with either the -c or -t options, suppresses output. The hinv command, when used with the -c or -t options, will exit with a value of 1, if no item of the specified class or type is present in the hardware inventory table. Otherwise, hinv exits with a value of 0. NOTE For many devices, the device will not be displayed in the inventory if the corresponding driver is not configured into IRIX. SEE ALSO lboot(1m), getinvent(3)
[Top]
Give this a try:
> audiopanel -spinaltap
"Party on Wayne!"
You O² (and Irix 6.3) users need not fear, use instead:
In ~/.Xdefaults (this assumes you are on a Unix machine and run the X11 WIndowing System)
apanel*spinalTap: true
And in Irix 6.5, the good old "-spinaltap" option is back. This is what's effectionately known as an "Easter Egg".
[Top]Use this to set your prompt, the window title and icon title with the following (assuming you use xwsh and not xterm):
set prompt = "%{\e]2\;%m: %~ ^g\e]1\;%m: %c^g%}%B%n@%m:%c%b "
an alternate:
set prompt="%{\e]2\;%n@%m: %~ ^g\e]1\;%n@%m^g\r%}%U%B[%m]%b%u %S%~%s "
[Top]Here are a number of really cool things you can do with your 'lectronic mailbox.
mail
, Mail
, ZMail
)
use the file /var/mail/$USER
for storing the mail
messages and by default, so does mailbox
. NS-Mail
uses the file $HOME/nsmail/Inbox
. The mailbox
program supports a mail-file option to change the file it looks at.
Here's an example of setting mailbox for NS_Mail:
mailbox -f ~/nsmail/Inbox -B sfplay ~/newmail.wav
&
In a similar fashion to the DOS "out of environment space" error message, this error indicates your argument list exceeds the space allocated to store it. In DOS, the default size is a measly 128 bytes, Irix provides 20,480 (20K) bytes by default. However, it does not take much to use up that space, remember when you wondered what you were going to do with the 64K in your CP/M machine (did I date myself or what?). For example, the Sun-Solaris O/S provides approx. 64K as the default environment size. Anyway, this is an easy setting to change via the following commands:
> su # systune -i systune-> ncargs 65536 ncargs = 20480 (0x5000) Do you really want to change ncargs to 65536 (0x10000)? (y/n) y systune-> quit # autoconfig Automatically reconfiguring the operating system. Reboot to start using the reconfigured kernel.
Simply reboot and you now have a 64K environment.
Caveat: Beware that this environment size is given to *all* processes on the system, whether it is needed or not. Since a typical Unix system can easily have dozens to hundreds of processes running at any one time, you can needlessly consume system memory by setting ncargs too high.
[Top]
If you are more comfortable with the command line than the Indigo Magic Desktop, there is a really cool tool available for IRIX that adds a lot of pizzazz to boring old directory listings called colorls.
[Top]
[Top]
Sorry, this application is no longer available, if you have a pointer to the source, I can try to re-build it.
Tired of the command line FTP client and find that the FTP client in Netscape does not provide enough functionality? If so, have a look at LLNL XFTP, an OSF/Motif-based FTP client, enables you to graphically transfer files and perform various directory manipulation commands, both locally and remotely. Two especially notable features are the ability to:
LLNL XFTP has many features, is configurable, and has an intuitive user interface. You can download an inst-image (*) here.
> su
# gunzip libsocks.so.gz
# mv libsocks.so /usr/lib
ScreenShot version 1.0 - an image capturing utility.
(inspired by the old IRIX 'snapshot' tool)
ScreenShot allows you to capture regions of screen into an image file. When you invoke the program, a tiny window with a camera image will appear.
Note: The new Irix 'capture' tool also has screen capture capabilites. You might want to check it out first.
[Top]Visitor # 31513 since 14.SEP.2003
[Last updated: 10.March.2022 ]