<?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>CheckThisShitOut.com &#187; scripts</title>
	<atom:link href="http://www.checkthisshitout.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.checkthisshitout.com</link>
	<description>ninja adventures in life...</description>
	<lastBuildDate>Sun, 11 Dec 2011 01:45:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Synology start/stop init.d scripts for SABnzbd, Sickbeard and CouchPotato</title>
		<link>http://www.checkthisshitout.com/2011/07/synology-startstop-init-d-scripts-for-sabnzbd-sickbeard-and-couchpotato/</link>
		<comments>http://www.checkthisshitout.com/2011/07/synology-startstop-init-d-scripts-for-sabnzbd-sickbeard-and-couchpotato/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 16:08:25 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[synology]]></category>
		<category><![CDATA[couchpotato]]></category>
		<category><![CDATA[dsm 3.1]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[sabnzbd]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sickbeard]]></category>

		<guid isPermaLink="false">http://www.checkthisshitout.com/?p=378</guid>
		<description><![CDATA[Disclaimer:The following init.d scripts assume some linux knowledge and that your Synology NAS device has been bootstrapped allowing you to install the required dependancies using ipkg. These instructions do not describe how to download, install or configure SABnzbd, Sickbeard or CouchPotato. All init.d scripts have been tested and work fine on a Synology 411+ running [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-4750042041616020";
/* 468x60, created 3/10/10 */
google_ad_slot = "9509283487";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p><em><u>Disclaimer:</u>The following init.d scripts assume some linux knowledge and that your <a href="http://www.synology.com/">Synology NAS</a> device has been <a href="http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc#How_to_install_ipkg">bootstrapped</a> allowing you to install the required dependancies using ipkg.</p>
<p>These instructions do not describe how to download, install or configure SABnzbd, Sickbeard or CouchPotato.  All init.d scripts have been tested and work fine on a Synology 411+ running DSM 3.1.  All init.d scripts expect certain packages to be installed in order to work correctly.  </p>
<p>These scripts should be placed in /opt/etc/init.d/ and be given the same filenames and permissions as shown below.</p>
<p><u>All init.d scripts require some values to be defined by you in order to work correctly</u>.<br />
</em></p>
<p><strong>Required Packages</strong></p>
<ul>
<li>openssl</li>
<li>py26-cheetah</li>
<li>py26-openssl</li>
<li>python26</li>
<li>wget</li>
</ul>
<p><strong><a href="http://sabnzbd.org/">SABnzbd</a></strong> &#8211; /opt/etc/init.d/S99sabnzbd.sh (rwxr-xr-x)<br />
Download: <a href='http://www.checkthisshitout.com/wp-content/uploads/2011/08/S99sabnzbd.sh' >S99sabnzbd.sh</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Synology DSM init script for SABnzbd</span>
<span style="color: #666666; font-style: italic;"># Requires: sabnzbd</span>
<span style="color: #666666; font-style: italic;">#           python</span>
<span style="color: #666666; font-style: italic;">#           wget</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configured Variables:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">PYTHON_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/bin/python2.6&quot;</span>
<span style="color: #007800;">SABNZBD_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/share/sabnzbd/SABnzbd.py&quot;</span>
<span style="color: #007800;">SABNZBD_PORT</span>=<span style="color: #ff0000;">&quot;9200&quot;</span>
<span style="color: #007800;">SAB_API_KEY</span>=<span style="color: #ff0000;">&quot;YOUR API KEY GOES HERE&quot;</span>
<span style="color: #007800;">SAB_INI_FILE</span>=<span style="color: #ff0000;">&quot;ABSOLUTE PATH TO sabnzbd.ini&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Begin script</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>bin
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Starting SABnzbd&quot;</span>
  <span style="color: #800000;">${PYTHON_EXEC}</span> <span style="color: #800000;">${SABNZBD_EXEC}</span> <span style="color: #660033;">-s</span> 0.0.0.0:<span style="color: #800000;">${SABNZBD_PORT}</span> <span style="color: #660033;">-f</span> <span style="color: #800000;">${SAB_INI_FILE}</span> <span style="color: #660033;">-d</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Stopping SABnzbd&quot;</span>
  <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">--delete-after</span> <span style="color: #ff0000;">&quot;http://127.0.0.1:<span style="color: #007800;">${SABNZBD_PORT}</span>/shutdown?session=<span style="color: #007800;">${SAB_API_KEY}</span>&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p><strong><a href="http://sickbeard.com/">SickBeard</a></strong> &#8211; /opt/etc/init.d/S99sickbeard.sh (rwxr-xr-x)<br />
Download: <a href='http://www.checkthisshitout.com/wp-content/uploads/2011/08/S99sickbeard.sh' >S99sickbeard.sh</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Synology DSM init script for SickBeard</span>
<span style="color: #666666; font-style: italic;"># Requires: sickbeard</span>
<span style="color: #666666; font-style: italic;">#           python</span>
<span style="color: #666666; font-style: italic;">#           wget</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configured Variables:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">PYTHON_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/bin/python2.6&quot;</span>
<span style="color: #007800;">SICKBEARD_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/share/sickbeard/SickBeard.py&quot;</span>
<span style="color: #007800;">SICKBEARD_PORT</span>=<span style="color: #ff0000;">&quot;9201&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Begin script</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Starting SickBeard&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">nohup</span> <span style="color: #800000;">${PYTHON_EXEC}</span> <span style="color: #800000;">${SICKBEARD_EXEC}</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Stopping SickBeard&quot;</span>
  <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">--delete-after</span> <span style="color: #ff0000;">&quot;http://127.0.0.1:<span style="color: #007800;">${SICKBEARD_PORT}</span>/home/shutdown/&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p><strong><a href="http://couchpotatoapp.com/">CouchPotato</a></strong> &#8211; /opt/etc/init.d/S99couchpotato.sh (rwxr-xr-x)<br />
Download: <a href='http://www.checkthisshitout.com/wp-content/uploads/2011/08/S99couchpotato.sh' >S99couchpotato.sh</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Synology DSM init script for CouchPotato</span>
<span style="color: #666666; font-style: italic;"># Requires: couchpotato</span>
<span style="color: #666666; font-style: italic;">#           python</span>
<span style="color: #666666; font-style: italic;">#           wget</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configured Variables:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">PYTHON_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/bin/python2.6&quot;</span>
<span style="color: #007800;">COUCHPOTATO_EXEC</span>=<span style="color: #ff0000;">&quot;/opt/share/couchpotato/CouchPotato.py&quot;</span>
<span style="color: #007800;">COUCHPOTATO_PORT</span>=<span style="color: #ff0000;">&quot;9203&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Begin script</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Starting CouchPotato&quot;</span>
  <span style="color: #800000;">${PYTHON_EXEC}</span> <span style="color: #800000;">${COUCHPOTATO_EXEC}</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-30s&quot;</span> <span style="color: #ff0000;">&quot;Stopping CouchPotato&quot;</span>
  <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">--delete-after</span> <span style="color: #ff0000;">&quot;http://127.0.0.1:<span style="color: #007800;">${COUCHPOTATO_PORT}</span>/config/exit/&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;[%4s]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #ff0000;">&quot;done&quot;</span>
  <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>If you find this helpful or found a problem with any of the scripts let me know in the comments section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.checkthisshitout.com/2011/07/synology-startstop-init-d-scripts-for-sabnzbd-sickbeard-and-couchpotato/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mkdvdiso</title>
		<link>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/</link>
		<comments>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 17:17:05 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.checkthisshitout.com/?p=109</guid>
		<description><![CDATA[A simple perl script utilizing mkisofs that takes a VIDEO_TS directory full of vobs and creates a dvd iso image. It needs a bit of further modification to make it more robost, but the basics are there and its fully usable. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [...]]]></description>
			<content:encoded><![CDATA[<p>A simple perl script utilizing mkisofs that takes a VIDEO_TS directory full of vobs and creates a dvd iso image.  It needs a bit of further modification to make it more robost, but the basics are there and its fully usable.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># a script to create dvd iso images using mkisofs</span>
<span style="color: #666666; font-style: italic;"># created by: Michael Sutherland, May 22, 2008</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Getopt<span style="color: #339933;">::</span><span style="color: #006600;">Long</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## variables ##</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$mkisofs</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'/usr/bin/mkisofs'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$path</span>    <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$iso</span>     <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$title</span>   <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$cmd</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## user options ##</span>
&nbsp;
GetOptions<span style="color: #009900;">&#40;</span>
        <span style="color: #ff0000;">&quot;path=s&quot;</span>        <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$path</span><span style="color: #339933;">,</span>
        <span style="color: #ff0000;">&quot;iso=s&quot;</span>         <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$iso</span><span style="color: #339933;">,</span>
        <span style="color: #ff0000;">&quot;title=s&quot;</span>       <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$title</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## sanity checks ##</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$path</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$iso</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$title</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #0000ff;">&amp;usage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #339933;">-</span>f <span style="color: #0000ff;">$mkisofs</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;unable to find mkisofs at $mkisofs<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## flush the buffer ##</span>
<span style="color: #0000ff;">$|</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## program start ##</span>
&nbsp;
<span style="color: #0000ff;">$cmd</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;$mkisofs -dvd-video -J -L -r -V $title -o $iso $path 2&gt;&amp;1&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">#print &quot;running: $cmd\n&quot;;</span>
&nbsp;
<span style="color: #000066;">open</span> <span style="color: #009900;">&#40;</span>MKISOFS<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;$cmd |&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009999;">&lt;MKISOFS&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">chomp</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>mkdvdiso: %40s&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$_</span> <span style="color: #b1b100;">if</span> <span style="color: #009966; font-style: italic;">/estimate finish/</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>mkdvdiso: %40s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;completed at&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## subroutines ##</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">sub</span> usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;mkdvdiso - a quick utility for creating dvd iso images<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;usage:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-path<span style="color: #000099; font-weight: bold;">\t</span>path and directory containing the VIDEO_TS 
            &amp; AUDIO_TS folders<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-iso<span style="color: #000099; font-weight: bold;">\t</span>path and name of iso image to be created<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-title<span style="color: #000099; font-weight: bold;">\t</span>title for the dvd iso image<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

