Aha, I thought so, which explains why you're not looking to do this in Bash.
Now that we've cleared that up, can you explain a little bit more precisely how you would like your program to run? A very basic command line looping prompt would look a little this this:
while(){
print 'Prompt:> ';
readline;
last if $_ eq 'quit';
}
But of course you have to decide what to do with the input when you've actually grabbed it. Or am I misunderstanding how you mean you would like to loop over a large number of commands? |