Archive for September, 2012

Clear Digi_PortServer_TS16’s buffer using Scheduler on Solaris 10

24 September 2012 Leave a comment


Description : Digi PortServer TS16 always hang after operating for hours, and need to hot-restarted.
Analysis of Problem : We assume device hang because of buffer over flow.
Solution : Create script with specific function (login to the device, clear all buffer, logout) and execute automagicaly with cron scheduler.

Figure 1. Digi PortServer TS16 connect to Solaris box via UTP Cable

Read more…

Own Notes – Shell Script

3 September 2012 Leave a comment

Filename Wildcards

The following characters are interpreted by the shell as filename wildcards, and any word containing them is replaced by a sorted list of all the matching files.

Wildcards may be used in the directory parts of a pathname as well as the filename part. If no files match the wildcard, it is left unchanged. Wildcards are not full regular expressions. Sed, grep, awk etc. work with more flexible (and more complex) string matching operators.

Match zero or more characters.
Match any single character
Match any single character from the bracketed set. A range of characters can be specified with [ – ]
Match any single character NOT in the bracketed set. Read more…

Categories: bash scripting