Sponsored Content
Full Discussion: Friendly command script
Top Forums Shell Programming and Scripting Friendly command script Post 101574 by Ygor on Thursday 9th of March 2006 08:52:46 PM
Old 03-09-2006
HP-UX has keysh. From the man page...
Quote:
NAME
keysh - context-sensitive softkey shell

SYNOPSIS
keysh

DESCRIPTION
keysh is an extension of the standard Korn-shell

keysh uses hierarchical softkey menus and context-sensitive help to aid users in building command-lines, combining the power of the Korn-shell with the ease-of-use of a menu system.

COMMAND ENTRY
keysh continually parses the command-line and always presents the user with an appropriate set of current choices on the softkey labels.

The user can select these softkeys to create readable softkey commands on the command-line. keysh automatically translates these softkey commands into equivalent HP-UX commands prior to executing them.

Alternatively, the user can ignore the softkeys altogether in favor of entering the traditional HP-UX commands directly, as when using the Korn-shell
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Most Neewbie friendly distribution

Hi! I guess the title says it all. I'm thinking about installing unix on a computer because that's the system they use in school so I'm just wondering which distribution I should download, which is most suitable for me. I have use a unix computer 3 times in school. I have had Windows for quite... (8 Replies)
Discussion started by: Rayben
8 Replies

2. UNIX for Dummies Questions & Answers

Friendly hello

To all whom belong to the UNIX forums - I just came across your web-site from a google search, wanted to say that I am looking forward to posting with you all and trying to learn as much as I can about Unix. I currently run a small version of linux on an obsolete laptop, I have been using... (0 Replies)
Discussion started by: Cheesedinverts
0 Replies

3. Shell Programming and Scripting

User friendly

Hello, As a newbie: I know that ls -l list files in a directory.Can i get a Bash script that prints the same information as ls -l but ib a user friendly way? Thank you. (3 Replies)
Discussion started by: debut
3 Replies

4. Programming

How to Write Linux Friendly Async Socket I/O

I am presently refactoring a windows deamon with an eye towards porting it to linux someday. Presently the application uses a single background thread and asynchronous socket I/O to implement FTP and HTTP clients in a single switch statement (2000 lines and 100 cases just for the switch... (3 Replies)
Discussion started by: siegfried
3 Replies

5. Filesystems, Disks and Memory

Help finding a Unix friendly RAID 1 backup

First time poster and a very new Unix user, so I'll just pre-apologize for stupid questions now. Does anybody know of a good RAID 1 hard drive backup that is Unix friendly? I want to avoid any hardcore programming. Can you recommend both NAS and non-NAS options? I need to do nightly backups... (31 Replies)
Discussion started by: c.wakeman
31 Replies

6. Red Hat

Mulitpath user-friendly name is correct

We have device mapper multipath configured. multipath -ll is showing things correctly. But when ever we are executing lvm related command, say pvs, it is showing /dev/mpath/<wwid> number instead of expected /dev/mpath/mpathX as follows - /dev/mpath/360060e801603c800000103c800002b22 Here,... (0 Replies)
Discussion started by: atanubanerji
0 Replies

7. What is on Your Mind?

Mobile Friendly Version of UNIX.COM

Hello, I have noticed some problems with Google complaining our site is not "https://search.google.com/www.usearch-console/mobile-friendly" using only Tapatalk. So, after a lot of work, I have re-enabled our legacy mobile style and make some improvements and Google has declared us "mobile... (2 Replies)
Discussion started by: Neo
2 Replies
SCRIPT(1)						    BSD General Commands Manual 						 SCRIPT(1)

NAME
script -- make typescript of terminal session SYNOPSIS
script [-adkpqr] [-F pipe] [-t time] [file [command ...]] DESCRIPTION
The script utility makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be printed out later with lpr(1). If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript. If the argument command is given, script will run the specified command with an optional argument vector instead of an interactive shell. The following options are available: -a Append the output to file or typescript, retaining the prior contents. -d When playing back a session with the -p flag, do not sleep between records when playing back a timestamped session. -F pipe Immediately flush output after each write. This will allow a user to create a named pipe using mkfifo(1) and another user may watch the live session using a utility like cat(1). -k Log keys sent to the program as well as output. -p Play back a session recorded with the -r flag in real time. -q Run in quiet mode, omit the start, stop and command status messages. -r Record a session with input, output, and timestamping. -t time Specify the interval at which the script output file will be flushed to disk, in seconds. A value of 0 causes script to flush after every character I/O event. The default interval is 30 seconds. The script ends when the forked shell (or command) exits (a control-D to exit the Bourne shell (sh(1)), and exit, logout or control-D (if ignoreeof is not set) for the C-shell, csh(1)). Certain interactive commands, such as vi(1), create garbage in the typescript file. The script utility works best with commands that do not manipulate the screen. The results are meant to emulate a hardcopy terminal, not an addressable one. ENVIRONMENT
The following environment variables are utilized by script: SCRIPT The SCRIPT environment variable is added to the sub-shell. If SCRIPT already existed in the users environment, its value is overwrit- ten within the sub-shell. The value of SCRIPT is the name of the typescript file. SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most shells set this variable automatically). SEE ALSO
csh(1) HISTORY
The script command appeared in 3.0BSD. The -d, -p and -r options first appeared in NetBSD 2.0 and were ported to FreeBSD 9.2. BUGS
The script utility places everything in the log file, including linefeeds and backspaces. This is not what the naive user expects. It is not possible to specify a command without also naming the script file because of argument parsing compatibility issues. When running in -k mode, echo cancelling is far from ideal. The slave terminal mode is checked for ECHO mode to check when to avoid manual echo logging. This does not work when the terminal is in a raw mode where the program being run is doing manual echo. If script reads zero bytes from the terminal, it switches to a mode when it only attempts to read once a second until there is data to read. This prevents script from spinning on zero-byte reads, but might cause a 1-second delay in processing of user input. BSD
December 4, 2013 BSD
All times are GMT -4. The time now is 01:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy