Sponsored Content
Full Discussion: Return Key
Top Forums Shell Programming and Scripting Return Key Post 302097851 by chapmana on Wednesday 29th of November 2006 03:24:12 AM
Old 11-29-2006
Return Key

Is it possible to enter data into a read command and automatically enter, for instance

read name
echo "Andy" /r


could this work cos it doesn't seem to be working for me!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Behavior Return key

Hi all! Well, you might have guessed it, I am looking for a way to control the return key under Solaris 8 and using telnet connections. I notice a difference between Solaris and System V but I don't know exactly where to look for changes. The stty params are slightly different but as far as I... (2 Replies)
Discussion started by: nulnul7
2 Replies

2. UNIX for Dummies Questions & Answers

Pressing backspace key simulates enter key

Hi, Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused: Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies

3. Shell Programming and Scripting

How to identify whether the return key is pressed ??

I want my program(ksh) to execute further only if the return key is pressed. Please help. i have already tried "\n", "\r", "^M" . Thanks in advance (2 Replies)
Discussion started by: AiK
2 Replies

4. Shell Programming and Scripting

How to include RETURN KEY with Background process "&" in Shell Script

Hello All, I am a newbie in Shell script programming, and maybe you can help me with my query. I need to write a shell script (mntServer.ksh) that will start a background process and also to be able to run another script. The mntServer.ksh script contains: #!/bin/ksh... (1 Reply)
Discussion started by: racbern
1 Replies

5. Shell Programming and Scripting

date and time on every time pressing return key

Hi all, I have a situation here, I want that every time when i press "enter key" in bash prompt i want the date command to be executed. i have tried to make some changes in "/etc/bashrc" but no luck. Thanx in advance (1 Reply)
Discussion started by: xander
1 Replies

6. Shell Programming and Scripting

How to enter a return key in bash script?

Hi, I'm porting an install script from AIX to Red Hat (2.6.18-164.el5 #1 SMP) I have this script working in both AIX and HP-UX. The script is a wrapper for a Micro Focus Server Express install program. It responds to the install program questions with a here-now list. Responses includes... (14 Replies)
Discussion started by: duker61
14 Replies

7. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

8. Shell Programming and Scripting

enter key or carriage return as input in perl

hi experts Question in perl i'm creating a script to take from user a different inputs one of them is the carriage return .. so that i want to make an if condition if the user hit enter key the user will go to previous step it something like that chomp ($input = <STDIN>); if ($input =~... (3 Replies)
Discussion started by: doubando
3 Replies

9. Shell Programming and Scripting

How to write a shell script to automatically accept return key with out user intervention?

Hi Friends, i am creating a shell script which is accepting file name as input parameter from Java and invoking finacle service. The service will accpet text file,B2k_session id,etc and upload the text file data in finacle database. My shell script looks like this:- #! /bin/ksh... (2 Replies)
Discussion started by: vadlamudy
2 Replies
th_manage(1M)						  System Administration Commands					     th_manage(1M)

NAME
th_manage - manage the fault injection test harness SYNOPSIS
th_manage name instance command th_manage path command DESCRIPTION
th_manage applies the action specified by command to the instance specified by instance of the driver specified by name (or the driver instance specified by path). The driver instance must be running fault injection specifications (errdefs) defined by th_define(1M). th_manage supports several commands that operate on the driver instance specified by name and instance (or path). The commands are: broadcast Awaken all th_define processes, causing them to display their current status and exit if the errdef is now defunct (that is, if count, failcount , and acc_chk are all zero). clear_acc_chk Awaken all th_define processes. If count and failcount are already zero, then set acc_chk to zero, so that th_define exits once it has displayed its status. clear_errdefs Awaken all th_define processes. count, failcount and acc_chk are all set to zero so that all th_define commands exit once they have displayed their status. clear_errors Awaken all th_define processes. If count is already zero, set failcount and acc_chk to zero, so that th_define exits once it has displayed its status. get_handles List all the access handles. start Begin or resume execution of all errdefs. stop Suspend all errdefs for this name and instance (or path). EXAMPLES
Example 1: Useful Commands To begin the tests, enter: # th_manage foo 0 start To check the status of the errdefs, enter: # th_manage foo 0 broadcast This causes each th_define process to print out its current status. If the driver has reported a fatal error, you can take the driver offline using libdevice, clear the error condition by entering: # th_manage foo 0 clear_acc_chk or # th_manage foo 0 clear_errors and bring the driver online again using libdevice. To terminate testing, enter: # th_manage foo 0 clear_errdefs SEE ALSO
th_define(1M) SunOS 5.10 4 Jan 2001 th_manage(1M)
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy