Hangar.La tienda de software del Amiga

getsh

Print user's shell (MultiUser)

Short:        Print user's shell (MultiUser)
Author:       cmccarth@dullahan.rtc-cork.ie (Chris McCarthy)
Uploader:     cmccarth dullahan rtc-cork ie (Chris McCarthy)
Type:         util/batch
Architecture: m68k-amigaos

This program prints the shell of the owner of the current task (the user
who runs the getsh program). I find it useful for scripts which need to
know what the user's shell is, e.g., in my S:Shell-Startup I have the
following lines.

IF `getsh` EQ "unix:usr/local/bin/csh"
	unix:usr/local/bin/csh
	endcli
ENDIF

So if the user's prefered shell is csh, it will be ran, rather than the
standard AmigaShell.

Legal stuff: You are free to use/modify this program for your own needs.

Requirements:
This program requires MultiUser (© Copyright 1993-1994 by Geert Uytterhoeven).

Gratis

Descargar 5 KB

Desde el Amiga: abre Hangar y busca getsh.

Autorcmccarth@dullahan.rtc-cork.ie (Chris McCarthy)
Categoríautil/batch
Tamaño5 KB
Param68k-amigaos
OrigenAminet