Bash: Script with tail and grep
I would like to make a script to check my maillog and I tried the following:
Code:
su -c 'tail -f /var/log/maillog | grep $1' Thx |
Use double quotes instead of single quotes around your command.
|
Works perfectly, thanks a lot.
|
All times are GMT -5. The time now is 10:24 PM. |