I'm trying to automate some mundane stuff I have to do with bash, but I'm running into trouble with debugging. Basically when I run interactively the script runs fine, but when I submit the job to a batch system whatever I'm running prints
Please answer yes or no.
multiple times. The problem is that I have no idea what it's asking me. Is there some way to direct the prompt to be printed so I can debug this?