bash and Perl interaction questions

hi.

i�m working in bash and am trying to create a Perl daemon that controls bash�s behavior. this is actually in preparation for a later project i�ll be working on.

basically, i�m looking for a way to have the Perl daemon tell bash what to do. i already have a small daemon that simply prints to the screen after a given interval, but what i want to happen ideally is: say the user inputs �cd library� and hits enter, the Perl daemon should see that the directory is library, and subsequently tell bash to echo a few statements informing the user of what the directory is all about.

any tips? of course once this is done, this would open the doors to a great number of other possibilities. i�m just trying to take this first step.

thanks a lot everyone. :slight_smile:

no one?

i just need a way to execute bash commands from Perl, such that when Perl reads a bash environment variable, it can tell bash to echo something, for example.

:slight_smile:

check out shell and exec.