Skip to main content

Posts

Showing posts from April, 2017

Svchost process in task manager

Svchost.exe contains generic host processes. If the svchost.exe is accidentally close or intentionally close, then the system might crash or shutdown. There are times that svchost.exe does consume quite a lot of resources and eats up the memory on the system. Thus, it's quite tempting to close or kill the process. To kill or close a process forcefully via command line can be done using taskkill command plus the process id. Ex: Taskkill /pid 1234 How to know exactly which service or process the svchost is running? To check the pid and the process that svchost is running, type: tasklist /svc Tasklist /svc command will display the image name, pid and the services. Output example for tasklist /svc command: svchost.exe                   1172 EventSystem, fdPHost, FontCache, netprofm,                                    nsi, W32Time, Wd...

List completed cron jobs in Centos

Listing cron jobs or log files within a specific time frame is quite hard especially if the log or logs are quite a big file. But of course, doing the lazy way but a smarter way is always a good option. Use SED or stream editor. In Centos the log is in: /var/log/cron /var/log - path for the file  cron - is the file that keeps the record for cron jobs, there is no filename extension To check the logs within the 24 hours time, sed can do it easily and quickly. Here's one line, time saver command to check the cron log file: sed -n '/Mar 10 00:00:01/ , /Mar 11 00:01:01/p' /var/log/cron To redirect the output to a file: sed -n '/Apr 10 00:00:01/ , /Apr 11 00:01:01/p' /var/log/cron > cron24_hours.record.log You can replace /var/log/cron with any other files as long as it follows the time format of Month, Day of the month and the time in HR:MM:SS format. Download the free Linux Android App cheat sheet, see link below. It's free. Enjoy. ...

Outlook does not display picture

Have you received an email saying please find the picture below, but the picture is on the attachment not on the body of email. Or sending out a nice an beautiful layout of graphics hoping to impress a colleague or client only to find out that the the graphics doesn't display correctly in Outlook or either in the mobile phone. HTML Tables has been a big help for web designers or developers before the CSS era or other good platforms at this time. Well, if picture is not displaying properly in Outlook or mobile phone. Embedding or inserting the picture in a Table, seems to be a good quick solution in inserting pictures via Outlook and it will display properly in mobile phone also. When composing email in Outlook, click on the Insert option and click on insert table. If sending two pictures, you can insert a two rows or two columns and insert the picture on each row or column. After sending out the email, check the email in Outlook or mobile phone and if everything goes ok...