Hello,
I know this is not a simple question so I just need to know where to start for below project:
I am running under Ubuntu 18.04
What I'd like to see in apache page is to display status of particular process pids.
ps aux | grep keywords.txt
keywords.txt
word1
word2
word3
word4
word5
myscript
while read -r line
do
ps aux | grep $line
done <keywords.txt > report_to_apache
Is it hard to make it visible like png files in apache as shown below:
Expected output in apache page:
status process name
/var/www/html/green_flag.png word1
/var/www/html/green_flag.png word2
/var/www/html/red_flag.png word3
/var/www/html/green_flag.png word4
/var/www/html/red_flag.png word5
Hmmmm.... strange it should work...
Are you sure your keywords.txt file isn't in DOS format? Any weird characters etc?
Could you post the output of cat -vet keywords.txt using code tags....
--- Post updated at 10:10 PM ---
Hello Vgersh99,
It works as expected..
I also have wrote a very simple html to make it publish with png file.
Thank you so much again...