in reply to How can i dynamically open a text file from a folder???

As others have said, your question is difficult to understand.
Win32::ChangeNotify might help for detecting if a file has been created/changed. The linux equivalent is Linux::Inotify,. You could have one of these running as a service/daemon.
To get the command to open and view a file use Win32::FetchCommand, I do not know a Linux equivalent.
All are on CPAN. If you are using a GUI on Linux then the issue is which viewers you have availible.
  • Comment on Re: How can i dynamically open a text file from a folder???