This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

pasting colours though external script

Help for those learning Tcl or writing their own scripts.
Post Reply
w
wilson
Voice
Posts: 2
Joined: Sat Nov 19, 2005 1:33 pm

pasting colours though external script

Post by wilson »

I want to paste colours onto irc, but the eggdrop ends up pushing raw commands onto irc.

tcl contains:

set output [exec /bin/rank.sh]
putquick "PRIVMSG $chan :$output"

my bash script contains :

echo \\0034TV\\003

which if run in the shell returns:

./rank.sh
\0034TV\003

On irc, unforunatly the RAW text is output including "\". Looking at some of the other posts I saw subst mentioned.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

don't use shell script, use Tcl only
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
w
wilson
Voice
Posts: 2
Joined: Sat Nov 19, 2005 1:33 pm

Post by wilson »

Your saying its not possible ? I'm totally shocked if that is the case.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

everything's possible, you could dump stuff on IRC using Ada or PL/SQL, but that's not the point here - the point is this forum is for Tcl scripting, not for shell scripting, so piping shell scripts through Tcl is off-topic
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply