Search Results

Search: Posts Made By: nixguynj
1,665
Posted By nixguynj
Detect OS
whats the equivalent of detect OS in perl with an if then ?


platform='uname'
if [[ $platform == 'Linux' ]]; then
alias ls='ls --color=auto'
elif [[ $platform == 'SunOS' ]]; then
...
1,859
Posted By nixguynj
File monitor and alert
whats is the best way to monitor file if it has not updated in last 24 hours.
example /var/logmessages in linux , /var/adm/messaged in solaris and alert to email .

find with mtime , perl file...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy