1

I have deployed a jar on heroku that opens a connection to a random port. When this jar is opened, it creates a config.txt file and keeps receiving request. This config.txt file has a randomly generated username and password.

The whole jar is executed using a shell script file. This file is called by heroku Procfile.

How do i tell shell script to read the content of config.txt file. This config.txt file will be automatially created by the jar.

lambad
  • 1,046
  • 10
  • 21
  • 1
    See [Looping through the content of a file in Bash](https://stackoverflow.com/q/1521462/5291015) – Inian Apr 17 '18 at 07:23

0 Answers0