Sponsored Content
Full Discussion: Auto ENTER key on TERM
Top Forums UNIX for Dummies Questions & Answers Auto ENTER key on TERM Post 302954736 by sea on Thursday 10th of September 2015 12:31:08 PM
Old 09-10-2015
This would run through 3 states, sending '2 enter' to each of it.
Code:
for state in CA WS IL
do 	$state <<-EOF
	
	
	EOF
done

hth
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read the ENTER key

Hi , I do the following : ]echo "Do you want to say yes or no ?(y/n):\c" read ans here 'n' is the default value.that means if the user press ENTER key then it should be 'n' . Now how do i know that the user has pressed ENTER key.What will be stored in my variable 'ans'. (4 Replies)
Discussion started by: sars
4 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. UNIX for Advanced & Expert Users

using enter key in shell script

without pressing the enter key ..manually... how can we read the enter key ..from the shell script..so that the script termintes automatically. eg: telnet a.b.c.d xxxx now " how to read the enter key" tho terminate the script (1 Reply)
Discussion started by: bishweshwar
1 Replies

4. Shell Programming and Scripting

trap signal for enter key

hi , What is the trap signal for "ENTER key"? (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

5. Shell Programming and Scripting

How to find entering ENTER key?.

Hello All, i have a script to get input from the user like bellow, read -p "Do you want to continue (y/n) : " status i want to identify the pressing of Enter Key with out giving any value for the above statement and i want get the status if we press Enter key during run time. How to... (0 Replies)
Discussion started by: tsaravanan
0 Replies

6. Shell Programming and Scripting

enter key solaris

Hi, When I run script on Sun Solaris (sassetup), it prompts to "Press Enter To Continue". Now I want to automate this, ie put sassetup in a script file. So, when I run this file, it should be executed automatically without waiting for anyone to press Enter Key. I have tried the following... (1 Reply)
Discussion started by: sajjunaqvi
1 Replies

7. Shell Programming and Scripting

How to issue ctrl+D and enter key

My problem is that i have to connect Linux server. I can connect it with SSH but because of the software of the Linux server, i need to press enter and after ctrl+D. Therefore, I need to write a script that should press enter and ctrl+D. How can i write it in KSH shell script. HELP ME! (7 Replies)
Discussion started by: fozay
7 Replies

8. Shell Programming and Scripting

Disable Enter key to be pressed

Hi Experts, I have a script in which I want to disable the "Enter" key press. Actually my script executes some process in background. So, till that background process is running, I don't want "Enter" key to be pressed by user. Is this can be achieved using trap command? (6 Replies)
Discussion started by: R0H0N
6 Replies

9. Shell Programming and Scripting

Auto enter for prompt messages

Hello everybody, I am coding a script, that allow the user to enter some information using prompt messages, i.e: sEpisode=1 read -e -i "$sEpisode" -p "Start download from episode: " downloadFrom sEpisode="${downloadFrom:-$sEpisode}" This code allows the user to set the download from... (4 Replies)
Discussion started by: Abu Rayane
4 Replies

10. Shell Programming and Scripting

Simulate enter key

I have a popup window that appears on every boot up. I would like to have it dismissed automatically each time instead of having to hit the enter key. I thought I could write a script that would execute on startup. I tried this xdotool key return andy@7_~/Downloads$ xdotool key ... (7 Replies)
Discussion started by: drew77
7 Replies
pstatectl(1M)															     pstatectl(1M)

NAME
pstatectl - control processor performance states SYNOPSIS
cpu] pstate| interval] DESCRIPTION
The command is used to control processor performance states (P-states). On systems with supported processors and firmware, processor per- formance states can reduce power consumption. A supported processor implements a series of performance states, numbered from P0 to Pn, where n is implementation dependent. Each subse- quent P-state consumes less power but offers less performance than the previous state. provides access to both static and dynamic performance state usage modes. In static mode, the system remains in a specified P-state, where power consumption and performance are reduced by a fixed amount. In dynamic mode, HP-UX will adjust the processors' P-states individually, in response to the workload running on the system. Enabling dynamic processor performance states will generally have a negligible effect on system performance, while at the same time reduc- ing power consumption when the system is not fully loaded. Options recognizes the following options: The operation will apply to the specified processor only. If is not specified, the operation applies to the whole system. The "status" operation will report detailed status for each processor. Otherwise, a summary of the system state is reported. Operands recognizes the following operands; only one operand at a time can be specified on the command line: Enable the dynamic P-states mode (processors will adjust performance to match the workload). Disable the P-states (processors will always be at maximum performance). Enable static mode (processors will always be in the specified P-state). If the specified state is higher than is supported, the highest supported state is used instead. The state may be specified as a number, or in P-state notation (for example, P0). Enable dynamic P-states mode within the range of states specified. and should be supplied as specified under the option. Report information about the system's P-state capabilities, the current P-state mode (static or dynamic), and whether HP-UX has control over processor P-states. If was speci- fied, each processor's current P-state and operating mode are displayed. Display a table listing the power consumption and relative performance of each P-state. Print the number of the highest implemented P-state on the system. If the system does not support P-states, the number is 0. Change the time interval between dynamic mode state changes to the specified duration. The minimum is 0.01 seconds, and the maximum is 600 seconds. EXTERNAL INFLUENCES
On some systems, the Onboard Administrator may take control of P-states away from the operating system (for instance, when iLO is used to place the system in Static High Performance or Static Low Power mode). If HP-UX does not have control over processor performance states, the command will still work normally. However, any changes made to P-state modes will have no effect until HP-UX regains control. The command will report whether HP-UX currently has control over P-states. RETURN VALUE
returns the following values: Successful completion. Command failed. DIAGNOSTICS
Make sure that the system has Itanium(R) 2 9100 series or later processors, and that the installed system firmware supports P- states. EXAMPLES
To enable dynamic P-states on the system: To disable dynamic P-states on the system (all processors will be in maximum performance mode): or To restrict the system to P0 and P1 only: DEPENDENCIES
Processor performance states require Itanium(R) 2 9100 series processors or later models. Some systems require a firmware update to use processor performance states. AUTHOR
was developed by HP. SEE ALSO
(Itanium(R)-based Systems Only) pstatectl(1M)
All times are GMT -4. The time now is 06:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy