Solved

Does anyone know how to put the <enter> key in Bourne Shell?

Posted on 2002-05-17
5
193 Views
Last Modified: 2010-04-21
I have a utility that need to hit the enter key to get updates.  I want to run this utility in a script then hit enter every 60 sec.  
0
Comment
Question by:vctsang
5 Comments
 
LVL 5

Expert Comment

by:ecw
ID: 7020280
while sleep 60 ; do echo ; done | script
0
 

Author Comment

by:vctsang
ID: 7021499
Thanks for the info.  The C utility I have for an application it will prompt you to hit ENTER from standard input from the terminal to run it.  I want to know if we can put the ENTER key in a script and run it every 60 secondes. Thanks,  -Vin
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 7022491
#! /usr/bin/expect
open "/path/to/application"
while {1==1} {
  send "\n"
  sleep 60
}
0
 
LVL 20

Expert Comment

by:tfewster
ID: 7921124
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by ahoffmann

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7967070
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IBM AIX Cannot Install AIX ToolKit Applications for Linux 11 141
SSH commands for Nas4free 21 378
remove a combination of patterns from a file 15 60
OpenLDAP Proxy to Active Directy 6 212
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now