Enter the command line on your local box:
ctrl/c to break the command (probably won't work locally anyway)
Next recall the command.
-for example in bash: ctrl-up arrow or ksh (with export EDITOR=vi) esc-k
You now have a line that looks like:
scrape the screen, then paste the command string:
Help!
I'm would like to log in su - within a script an contuine to run the commands within the script. Every time I log in as su - I have to exit for the rest of the script to run! e.g.
#!/bin/ksh
su - oracle
ps -ef |grep som <--- doesn't excute command until I log out su
oracle.... (1 Reply)
Hi folks,
I have the following configuration file:
DB_LAYER=NO
ADMIN_LAYER=NO
RTESUB_LAYER=NO
DB_HOST_NAME=tornado
ADMIN_HOST_NAME=tornado
RTESUB_HOST_NAME=tornado
RESPONSE_FILE_SR=/tmp/SR.rsp
INSTALL_SR_1=/home/Upgrade_4.7.1/Utilities/Install_SR:Y... (8 Replies)
Hi,
In ksh how can I execute something like this:
remsh newhost "for i in 1 2 3 4 5 do echo file$i; cat file$i; done"
I cannot pass the contrl J or enter in th above line which is required by the for loop.
Thanks... (1 Reply)
I have a space delimited file containing: hostname OracleSID connectstring
I want to loop through the file and execute remsh to check the database processes.
cat $filename | while read HOST SID CONNECT
do
{
result=`remsh $HOST "ps -ef | grep pmon_${SID}$| grep -v grep"`
if ........ (1 Reply)
Boy I hope someone can answer this question. I've been beating my head against the wall all day trying to come up with a solution.
I have a carrot delimited file that looks like this:
ANDERSON^678934^1974^BOB
JONES^564564345^1954^ABRAHAM
SMITH^47568465^1948^JON
If I run this command:
awk... (6 Replies)
Sorry for such a dreadful title, but I'm not sure how to be more descriptive. I'm hoping some of the more gurutastic out there can take a look at a solution I came up with to a problem, and advice if there are better ways to have gone about it.
To make a long story short around 20K pieces of... (2 Replies)
I have the below code which runs on multiple databases , but this runs one-after-one. I will need this to run in parallel so that i could save a lot of time. Please help!!! Thanks in advance
for Db in `cat /var/opt/oracle/oratab |egrep -v "ASM" |grep -v \# |cut -d\: -f1`
do
{
export... (5 Replies)
OS : RHEL 6.1
Shell : Bash
I had a similair post on this a few weeks back. But I didn't explain my requirements clearly then. Hence starting a new thread now.
I have lots of files in /tmp/stage directory as show below.
I want to loop through each files to run a command on each file.
I... (8 Replies)
Discussion started by: kraljic
8 Replies
LEARN ABOUT DEBIAN
yasr
YASR(1) General Commands Manual YASR(1)NAME
yasr (Yet Another Screen Reader) - is an attempt at a lightweight, portable screen reader.
SYNOPSIS
yasr [ -C config file ] [ -c ] [ -s synthesizer ] [ -p synthesizer port ] [ program arg1 arg2 ... argN ]
DESCRIPTION
yasr is a lightweight, portable screen reader. It works by opening a shell in a pty and intercepting all user input/output, maintaining a
window of what should be on the screen by looking at the codes and text sent to the screen. It only requires that the user be able to
access the text to speech (TTS) device.
yasr was originally designed in conjunction with a Speak-out TTS device. Yasr also attempts to support DEC-Talk, DoubleTalk, Apollo, and
ViaVoice Outloud, but more work is needed to get these to work fully. It may be able to work with Emacspeak servers, however.
Currently yasr has two sets of keymaps, one for "review mode" (ie, reviewing the screen) and one for the standard mode. Keys defined for
the standard mode are checked irrespective of whether the user is in review mode or standard mode, but the review mode keymap is checked
first in the former case.
OPTIONS -C config file
The configuration file that yasr should use.
-c Attempts to emulate bash's -c command. It runs /bin/sh, passing it the arguments that were passed to yasr.
-s synthesizer
The TTS synthesizer to use in conjunction with yasr.
-p synthesizer port
The port that the TTS synthesizer is connected to.
yasr will also fork and exec a program to run, if it (and any optional command line arguments it needs) are given as the last command line
arguments.
KEYBOARD SETTINGS
Review mode
spacebar
Say review cursor position.
^ Move to the first character on the line, and say word.
$ Move to the last character on the line, and say word.
b Say previous character.
c Say character.
d Say next character.
e Read from cursor to bottom of screen.
f Search for text on the screen.
< Search from cursor to top of screen, using the previously-entered search string.
> Search from cursor to bottom of screen, using the previously-entered search string.
k Move up a line and read the line (currently same as up arrow).
l Say current line.
m Move down a line and read the line (currently same as down arrow).
n Bypass (send directly to the application).
t Read from top to cursor.
w Read entire screen.
z Move to beginning of previous word and read the word.
x Move to beginning of next word and read the word.
up arrow
Move to previous line and read the line.
down arrow
Move to next line and read the line.
left arrow
Move back one character and read the character.
right arrow
Move ahead one character and read the character.
( Go to previous paragraph.
) Go to next paragraph.
alt-i Reinitialize the synthesizer.
` Read the ASCII value of the current character.
Standard mode These keys also work in review mode.
ctrl-a Say application cursor position.
ctrl-l Say line.
ctrl-n Bypass.
ctrl-x Flush speech buffer.
alt-b Say previous character.
alt-c Say chracter.
alt-d Say word.
alt-e Read cursor to bottom of screen.
alt-k Say previous line.
alt-l Read line.
alt-m Read next line.
alt-r Toggle review mode.
alt-t Read top to cursor.
alt-w Read entire screen.
alt-x Silence speech. Like ctrl-x but will continue to be silent until a key is pressed (pressing alt-x a second time will start speech
again, for example).
ctrl-alt-k
Keyboard wizard. Allows the user to move, copy, or delete keybindings from within yasr.
ctrl-alt-o
Options menu. Allows the user to set options from within yasr.
ctrl-alt-s
Save configuration to disk.
alt-enter
Disable yasr. Yasr is silent and ignores all keys when disabled. Press again to re-enable. Note: this key is defined in the
[options] section as "DisableKey"
FILES
/usr/local/share/yasr/yasr.conf
yasr configuration file.
AUTHOR
Michael P. Gorse <mgorse@users.sourceforge.net>
16 August 2002 YASR(1)