<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>hubionmac.com &#187; crontab</title> <atom:link href="http://hubionmac.com/wordpress/tag/crontab/feed/" rel="self" type="application/rss+xml" /><link>http://hubionmac.com/wordpress</link> <description>script the unscriptable</description> <lastBuildDate>Fri, 03 Feb 2012 22:41:10 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Applescript: Bildschirmfoto alle 30 Sekunden (nur das Geräusch verrät einen ;-))</title><link>http://hubionmac.com/wordpress/2010/02/applescript-bildschirmfoto-alle-30-sekunden-nur-das-gerausch-verrat-einen/</link> <comments>http://hubionmac.com/wordpress/2010/02/applescript-bildschirmfoto-alle-30-sekunden-nur-das-gerausch-verrat-einen/#comments</comments> <pubDate>Thu, 25 Feb 2010 00:25:02 +0000</pubDate> <dc:creator>hubi</dc:creator> <category><![CDATA[OS X]]></category> <category><![CDATA[AppleScript]]></category> <category><![CDATA[crontab]]></category> <category><![CDATA[screen shot]]></category> <category><![CDATA[screencapture]]></category><guid isPermaLink="false">http://hubionmac.com/wordpress/?p=1954</guid> <description><![CDATA[Das hier als AppleScript-File abspeichern Code zum markieren einmal anklicken Code im Skript-Editor öffnen set dFolder to &#8220;~/Desktop/screencapture/&#8221; do shell script (&#8220;mkdir -p &#8221; &#38; dFolder) repeat 2 times set dateTime to do shell script &#8220;date +%Y%m%d_%H%M%S&#8221; do shell script (&#8220;screencapture &#8221; &#38; dFolder &#38; dateTime &#38; &#8220;.png&#8221;) &#8211; Capture screen. delay 2 &#8211; Wait [...]]]></description> <content:encoded><![CDATA[<p>Das hier als AppleScript-File abspeichern</p><div><div style="clear: left; font-size: 0.8em;"><em>Code zum markieren einmal anklicken <a href="#" onclick="selectThis(this.parentNode.parentNode.parentNode.getElementsByTagName('div')[1]);buildAppleScriptLink();">Code im Skript-Editor öffnen</a></em></div><div class="hubionmac_codebox" onclick="selectThis(this);"><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>set</b> <span style="color: #2d9600">dFolder</span> <b>to</b> &#8220;~/Desktop/screencapture/&#8221;</p><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><span style="color: #2000c0"><b>do shell script</b></span> (&#8220;mkdir -p &#8221; &amp; <span style="color: #2d9600">dFolder</span>)</p><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>repeat</b> 2 <b>times</b></p><p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre"> </span><b>set</b> <span style="color: #2d9600">dateTime</span> <b>to</b> <span style="color: #2000c0"><b>do shell script</b></span> &#8220;date +%Y%m%d_%H%M%S&#8221;</p><p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #2000c0"><b>do shell script</b></span> (&#8220;screencapture &#8221; &amp; <span style="color: #2d9600">dFolder</span> &amp; <span style="color: #2d9600">dateTime</span> &amp; &#8220;.png&#8221;) <span style="color: #5e6161">&#8211; Capture screen.</span></p><p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana; color: #5e6161"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #2000c0"><b>delay</b></span><span style="color: #000000"> 2 </span>&#8211; Wait for 30 seconds.</p><p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>end</b> <b>repeat</b></p></div></div><p>und crontab  ablaufen lassen&#8230;<br /> z.B.<br /> <code>40     8       *       *       *       osascript /Users/hubi/scripts/screenshooter.scpt</code><br /> Ach, wie sinnlos praktisch =)</p> ]]></content:encoded> <wfw:commentRss>http://hubionmac.com/wordpress/2010/02/applescript-bildschirmfoto-alle-30-sekunden-nur-das-gerausch-verrat-einen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mail Account nur zur bestimmen Zeiten aktivieren</title><link>http://hubionmac.com/wordpress/2009/02/mail-account-nur-zur-bestimmen-zeiten-aktivieren/</link> <comments>http://hubionmac.com/wordpress/2009/02/mail-account-nur-zur-bestimmen-zeiten-aktivieren/#comments</comments> <pubDate>Fri, 27 Feb 2009 08:38:39 +0000</pubDate> <dc:creator>hubi</dc:creator> <category><![CDATA[Apple Mail]]></category> <category><![CDATA[Add new tag]]></category> <category><![CDATA[crontab]]></category> <category><![CDATA[NERV!]]></category><guid isPermaLink="false">http://hubionmac.com/wordpress/?p=751</guid> <description><![CDATA[Mir gehen in letzter Zeit besonders Emails von der Arbeit auf den Sack, die mich in meiner Freizeit erreichen. Besonders zu so unmöglichen Zeiten wie am Wochenende oder gar noch vor dem Frühstück. Deshalb habe ich mir einen kleinen Crontab geschrieben der zuverlässig meinen Job-Email-Account deaktiviert und erst wenn ich anfange zu arbeiten wieder aktiviert&#8230; [...]]]></description> <content:encoded><![CDATA[<div style="width: 45%; float: left; padding-right: 10pt; display: inline; text-align:justify;">Mir gehen in letzter Zeit besonders Emails von der Arbeit auf den Sack, die mich in meiner Freizeit erreichen. Besonders zu so unmöglichen Zeiten wie am Wochenende oder gar noch vor dem Frühstück.</div><div style="width: 45%; float: left; padding-right: 10pt; display: inline; text-align:justify;">Deshalb habe ich mir einen kleinen Crontab geschrieben der zuverlässig meinen Job-Email-Account deaktiviert und erst wenn ich anfange zu arbeiten wieder aktiviert&#8230;</div><div style="clear:left;font-size:.8em"><em>Code zum markieren einmal anklicken</em></div><div style="border: 1px solid #ff9900; margin: 4px; padding: 4px; background: #cccccc none repeat scroll 0% 0%; width: 700px; max-width: 700px; max-height: 450px; overflow-x: auto; overflow-y: visible; font-size: 1.1em; color: #000000;" onclick="window.getSelection().removeAllRanges();if (document.selection) {var x = document.body.createTextRange(); x.moveToElementText(this);x.select();}else if (window.getSelection){var x = document.createRange();x.selectNode(this);window.getSelection().addRange(x);}"><code>*/3    11      *       *       1,2,3,4,5       osascript -e 'if running of application "Mail" is true then tell application "Mail" to set enabled of account "GWork" to true'<br /> */3    20,21   *       *       *       osascript -e 'if running of application "Mail" is true then tell application "Mail" to set enabled of account "GWork" to false'</code></div> ]]></content:encoded> <wfw:commentRss>http://hubionmac.com/wordpress/2009/02/mail-account-nur-zur-bestimmen-zeiten-aktivieren/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Killall on Idle</title><link>http://hubionmac.com/wordpress/2008/08/killall-on-idle/</link> <comments>http://hubionmac.com/wordpress/2008/08/killall-on-idle/#comments</comments> <pubDate>Wed, 27 Aug 2008 01:57:09 +0000</pubDate> <dc:creator>hubi</dc:creator> <category><![CDATA[terminal]]></category> <category><![CDATA[crontab]]></category> <category><![CDATA[on idle]]></category><guid isPermaLink="false">http://hubionmac.com/wordpress/?p=328</guid> <description><![CDATA[Diese Terminal-Kommando checkt, ob und wie lange der Rechner inaktiv ist (keine Maus oder Tatstatur-Eingabe) und führt ggf. dann einen Befehl aus&#8230; ist recht praktisch, wenn es im Crontab läuft =) idletime=`ioreg -c IOHIDSystem &#124; perl -ane 'if (/Idle/) {$idle=(pop @F)/1000000000; print $idle,"";last}'&#124;awk '{split ($0,a,".");print a[1]}'`;if [ $idletime -ge 4 ]; then killall VLC; fi [...]]]></description> <content:encoded><![CDATA[<p>Diese Terminal-Kommando checkt, ob und wie lange der Rechner inaktiv ist (keine Maus oder Tatstatur-Eingabe) und führt ggf. dann einen Befehl aus&#8230; ist recht praktisch, wenn es im Crontab läuft =)<br /> <code>idletime=`ioreg -c IOHIDSystem | perl -ane 'if (/Idle/) {$idle=(pop @F)/1000000000; print $idle,"";last}'|awk '{split ($0,a,".");print a[1]}'`;if [ $idletime -ge 4 ]; then killall VLC; fi &#038;>/dev/null</code></p> ]]></content:encoded> <wfw:commentRss>http://hubionmac.com/wordpress/2008/08/killall-on-idle/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 7/24 queries in 0.051 seconds using disk: basic
Object Caching 157/315 objects using disk: basic

Served from: hubionmac.com @ 2012-02-11 09:01:03 -->
