Sponsored Content
Top Forums Shell Programming and Scripting [Bash] Read History function & Read Arrowkeys Post 302928104 by sinnlosername on Tuesday 9th of December 2014 01:34:41 AM
Old 12-09-2014
Thanks Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

History for custom BASH function

Hello all, I have a bash function that opens Safari (I'm on OS X) with a specified argument. Here it is : function safari { #Safari bash function TLDS=( "http://www." ".com" ".org" ".net" ".gov" ".edu" ) if ; then open -a Safari ${TLDS}$2${TLDS} elif ; then open -a Safari... (0 Replies)
Discussion started by: inquen
0 Replies

2. Shell Programming and Scripting

Bash Script to Read & Write on different directories

Hi, root@server] df -h 121G 14G 101G 12% /home 147G 126G 14G 91% /backup We having our site files and images are storing in /backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following. root@server] cd /home... (1 Reply)
Discussion started by: mirfan
1 Replies

3. Programming

Cannot read a file with read(fd, buffer, buffersize) function

# include <stdio.h> # include <fcntl.h> # include <stdlib.h> # include <sys/stat.h> int main(int argc, char *argv) { int fRead, fPadded, padVal; int btRead; int BUFFSIZE = 512; char buff; if (argc != 4) { printf ("Please provide all of the... (3 Replies)
Discussion started by: naranja18she
3 Replies

4. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

5. Shell Programming and Scripting

Help with grep and read function in a BASH Script

I'm putting together a script that will search my mail archives for emails that meet certain criteria and output the files to a text file. I can manually cat that text file and pipe it into sendmail and it will work (i.e. cat /pathtofile/foo.txt | sendmail -t me@company.com) My script sends... (7 Replies)
Discussion started by: binary-ninja
7 Replies

6. Shell Programming and Scripting

bash read within function with arguments

I have trouble getting this logic to work #!/bin/bash function assign_var(){ while do read -p "$2 :" $3 done } assign_var '$IPADDRESS' ipaddress IPADDRESS Basicly, i want to make sure that entry is made (i can add more sophisticated checks later), but the idea is to recycle... (11 Replies)
Discussion started by: serverchief
11 Replies

7. Shell Programming and Scripting

Help with Bash piped while-read and a read user input at the same time

Hi I am new to writing script and want to use a Bash Piped while-read and read from user input. if something happens on server.log then do while loop or if something happend on user input then do while loop. Pseudocode something like: tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies

8. Shell Programming and Scripting

Using Grep & find & while read line in a script

Hello people! I would like to create one script following this stage I have one directory with 100 files File001 File002 ... File100 (This is the format of content of the 100 files) 2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0 then I have one... (0 Replies)
Discussion started by: Abv_mx81
0 Replies

9. UNIX for Dummies Questions & Answers

MAN and read & write function

How to use MAN to find information about read() and write() function ? The command "man read" show some rubbish, for example "man open" show great information about function I need. (2 Replies)
Discussion started by: bbqtoss
2 Replies

10. Shell Programming and Scripting

Bash: How to use read with conditions & loops

Hello, Below I try to control that the input is good an IP : #!/bin/bash cp /home/scripts/choice_interfaces.txt /home/scripts/interfaces.txt chmod 644 /home/scripts/interfaces.txt echo -e "Please enter the network informations into the /etc/network/interfaces file, complete them below... (9 Replies)
Discussion started by: Arnaudh78
9 Replies
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)
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy