BASH - How to open an interactive script from a non interactive script.....
Hi, thanks for reading my thread!
I have a script that I run by clicking an icon on my desktop.
The script goes and checks my various email accounts and a voice tells me how many (if any) emails there are for each account.
This is done non interactively.
I then expanded on that to have it ask me if I want it to continue. If I choose yes, it calls another script that tells me who they are from and the subject (later I will add a prompt to read the body).
My problem is I need a way to tell it to continue.
I can have it open a console while the scripts are running, but would rather have it all run in the background.
I would "settle" for it opening a console when asking a question, then closing the console and continuing. Thats what I am playing with now.
I read that if you put -i in the header (#!/bin/bash -i), it will make a script run interactively...... this does not work for me. I tried having the 1st script call the "question" script (which had the -i), no good. I then tried a trap thinking that the first script had to be truly "dead" before the -i script would work.. (trap ./question 0).... this also did not work.
So.... the questions:
1) Is there a way I can send a non interactive script simple input? - (doubtful)
2) How can I make a non interactive script call an interactive one and vis versa?
Last edited by OldGaf; 06-29-2008 at 12:03 PM.