<?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/3273" />

	<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>2002-12-19T10:37:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-19T10:37:48-04:00</updated>

		<published>2002-12-19T10:37:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14425#p14425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14425#p14425"/>
		<title type="html"><![CDATA[a little exec problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14425#p14425"><![CDATA[
Warning - it's 2:30pm and i'm drunk (xmas party today), so take my posts light hartedly.<br><br>THe exec command, executes things literaly, out doesn't require the escaping that is normaly required on the shell.<br><br>IE, if the is a space in a filename, you don't need to escape it.<br><br>Using this rule, you will notice that the command, is being executed, with the though that the space is in the filename, and not in the command.<br><br>My sugestion would be to change your command, so that the program name and directory and the arguemnts are seperate.<br><br>EG. have a single static command, with the program name pointing to psig. And then a seperate variable for each channel, with the arguemnts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Dec 19, 2002 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MasterJM]]></name></author>
		<updated>2002-12-19T10:19:21-04:00</updated>

		<published>2002-12-19T10:19:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14424#p14424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14424#p14424"/>
		<title type="html"><![CDATA[a little exec problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14424#p14424"><![CDATA[
hi <br><br>i want to start pisg (the irc chan stats) per trigger from pub<br><br>this works:<br>set update_setting(flag) "S"<br>set update_setting(cmd) "!update" <br>set update_setting(exec) "/home/masterjm/pisg/pisg" <br>set update_setting(msg) "stats updated -&gt; url" <br><br>bind pub $update_setting(flag) $update_setting(cmd) pub:update <br><br>proc pub:update {nick uhost hand chan text} { <br> global update_setting <br> puthelp "PRIVMSG $chan :[expr {[catch {exec $update_setting(exec)} error]?"$update_setting(exec) could not be executed ([string totitle $error]).":$update_setting(msg)}]" <br>} <br><br>this works<br><br>but i want to support more than one channel / pisg.cfg file<br>so i need this:<br><br>set update_setting(exec2) "/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/2.cfg"<br><br>[for an other channel an other cfg file]<br><br>but with this setting the eggdrop dont run pisg<br>if i try it over irc pub trigger the eggdrop says:<br>/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/2.cfg could not be executed (Couldn't execute "/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/morfi.cfg": no such file or directory).<br><br>(but the file and the directory are fine - in bash of the shell this works!)<br><br>any ideas?<br><br>thx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1065">MasterJM</a> — Thu Dec 19, 2002 10:19 am</p><hr />
]]></content>
	</entry>
	</feed>
