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
text_file=$1
. /etc/b2k/DFS10402/FINCORE/com/commonenv.com
$TBA_E/mcbx4005 1673:00:B $text_file N ALL //calling finacle service

But after executing finacle service it is asking me to Press <RETURN> key to exit ...

We want to automate the process with out user intervention.

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

Thanks,
Venkat Vadlamudi.

Try redirecting /dev/null into its standard input. The prompt might just not wait when standard input can't be read.

1 Like

Got it..iam able to skip entering return key by redirecting /dev/null into its standard input

1 Like