# setupSecond method use redirect of standard output to your log file.
log='logger -t logger-id'
# usage
$log "log message..."
# setup
function log() {
echo "`date +'%Y-%m-%d %H:%M:%S'` [$$] $1" >> script.log
}
# usage
log "log message..."
Technology and process fine points, notes and thoughts. Public blog of Whirix web development company from Barnaul, Russia.
# setupSecond method use redirect of standard output to your log file.
log='logger -t logger-id'
# usage
$log "log message..."
# setup
function log() {
echo "`date +'%Y-%m-%d %H:%M:%S'` [$$] $1" >> script.log
}
# usage
log "log message..."
// add editor
tinyMCE.execCommand("mceAddControl", true, elementId);
// remove editor
tinyMCE.execCommand("mceRemoveControl", true, elementId);
left:-100px;
top:-100px;
width:1px;
height:1px;
$fp = fopen($icoFile, 'r');
// cache control headers
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
// send the right headers
header("Content-Type: text/plain");
header("Content-Length: " . filesize($icoFile));
header("Content-disposition: attachment; filename=" . basename($icoFile));
fpassthru($fp);
fclose($fp);
x29:~ # /opt/jdk/bin/keytool -keystore /opt/jdk/jre/lib/security/cacerts -import -alias usertrust -file /home/yura/UTN-USERFirst-Hardware.crt -trustcacerts
Enter keystore password: changeit
Owner: CN=UTN-USERFirst-Hardware, OU=http://www.usertrust.com, O=The USERTRUST Network, L=Salt Lake City, ST=UT, C=US
Issuer: CN=UTN-USERFirst-Hardware, OU=http://www.usertrust.com, O=The USERTRUST Network, L=Salt Lake City, ST=UT, C=US
Serial number: 44be0c8b500024b411d3362afe650afd
Valid from: Sat Jul 10 01:10:42 NOVST 1999 until: Wed Jul 10 01:19:22 NOVST 2019
Certificate fingerprints:
MD5: 4C:56:41:E5:0D:BB:2B:E8:CA:A3:ED:18:08:AD:43:39
SHA1: 04:83:ED:33:99:AC:36:08:05:87:22:ED:BC:5E:46:00:E3:BE:F9:D7
Trust this certificate? [no]: yes
Certificate was added to keystore