Tag Info

New answers tagged

2

What do you mean with "it won't work"? Note that your [ -f "$fname" ] is testing the wrong directory; make it [ -f ~/Scripts/logs/"$fname" ].


1

Here is a script. Provide the log file name as the first argument. This checks for any time over 350ms. If such a time is found, it sends email. #!/bin/sh logfile="$1" flag="$(awk -v RS=" " '$1 == "ms" && last > 350 {flag=1} {last=$1} END{print flag}' "$logfile")" [ "$flag" ] && mail you@host -s "Over 350ms Report for $logfile" ...


1

No it is not. A computer does not store connection information anywhere apart from its non-volatile storage. It is however possible (to a certain extend) to retrieve that data from other sources which may include but are not limited to: Routers Gateways Proxy servers


1

Here is one approach: #!/bin/sh n= while true do fname="trace$n.log" [ -f "$fname" ] || break n=$(($n+1)) done traceroute google.com >"$fname" The above loops through each potential name in turn, trace.log, trace1.log, trace2.log, etc. The first time that it finds a name which doesn't exist, it breaks out of the loop and runs your ...


-1

I've solved the problem this way: Search for the "MSComCtl2 DLL" and copy over the same path as the .vbp project. Then try to re-open the project. If this fail, register the file (in that path) usign RegSvr32. Work for me!


0

In Cobain Backup I have found on occasion that I need to recreate the backup options in order for it to function correctly. Try adding these folders manually instead of a top tier folder if the above fails. Is this an automated or manual backup that kicks off? Do you have folder permissions that may limit these files from being copied? To find out right ...


0

Applications and/or the system should not place anything in that directory for long term storage. You should have no issue deleting them. As for the logging, you can delete the registry setting that turns it on. Go to Local Computer>Software>Policies>Microsoft>Windows>Installer If there is a key of "Logging", delete it (maybe write down ...


1

If you don't mind installing external tools, my call would be Pygments It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: a wide range of common languages and markup formats is supported special attention is paid to ...


0

grep -m 1 -o -e success -e error < <(tail -f output.log) | head -n 1 Output: success or error



Top 50 recent answers are included