Solved

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

Posted on 2002-05-17
5
192 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 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

18 Experts available now in Live!

Get 1:1 Help Now