<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13719" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-07-05T17:40:14-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13719</id>

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-07-05T17:40:14-04:00</updated>

		<published>2007-07-05T17:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74200#p74200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74200#p74200"/>
		<title type="html"><![CDATA[neophyte scripter getting time to format correctly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74200#p74200"><![CDATA[
for starters, you should set creationdate to 0 by default or you will start getting errors with files that don't exist..<br><br>You can use strftime to change the output time, have a look at tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Jul 05, 2007 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacGyver]]></name></author>
		<updated>2007-07-05T14:52:25-04:00</updated>

		<published>2007-07-05T14:52:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74199#p74199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74199#p74199"/>
		<title type="html"><![CDATA[neophyte scripter getting time to format correctly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74199#p74199"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !tf findfile2proc findfile2 {nick uhost hand chan text} {set file1a "/home/BabyEcm/test/test1.txt"set file1b "/home/BabyEcm/test/test2.txt"set file2a "/home/BabyEcm/test/test3.txt"set file2b "/home/BabyEcm/test/test4.txt"# Open file for read access (note we're not catching errors, you might# want to use catch {} if the file might not exist.puthelp "PRIVMSG $chan :working on a tcl routine to detect files"if {[file exists $file1a] == 1} {   set ynmsg "$file1a does exist"set cfdateunix [file mtime $file1a]set creationdate [strftime $cfdateunix %r]} else {   set ynmsg "$file1a does NOT exist"}# Here we read in all of the data.puthelp "PRIVMSG $chan :$ynmsg, $creationdate"}</code></pre></div>output on channel<div class="codebox"><p>Code: </p><pre><code>&lt;+BabyEcm&gt; working on a tcl routine to detect files&lt;+BabyEcm&gt; /home/BabyEcm/test/test1.txt does exist, 1183648942</code></pre></div>just writing scripts to learn and how do I get the file modication date to display in english.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4876">MacGyver</a> — Thu Jul 05, 2007 2:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
