botlending forum  

Go Back   botlending forum > Eggdrop & TCL > Tcl scripting

Tcl scripting Tcl scripting related questions

Reply
 
LinkBack Thread Tools Display Modes
Old 27-02-2007, 00:16   #1 (permalink)
Junior Member
 
Join Date: Sep 2006
Age: 36
Posts: 7
Rep Power: 0
vlad2006 is an unknown quantity at this point
Default Cum se aduna 2 numere in limbajul tcl?

Code:
        set suma 0;
        set proces [exec ps -U $nume | grep -v PID | grep -v "+" | grep -c S]
                set suma [$suma + $proces]
E corect asa ? Daca nu cum se face?
vlad2006 is offline   Reply With Quote
Old 27-02-2007, 14:43   #2 (permalink)
TCB & Ratings projects Member, #Mythic representative
 
arcade's Avatar
 
Join Date: Jun 2004
Location: In fatza calculatorului!!
Age: 19
Posts: 218
Rep Power: 37
arcade is on a distinguished road
Send a message via Yahoo to arcade
Default

nu, pentru a calcula o expresie matematica se foloseste comanda expr de exemplu:
Code:
[expr 1+2]
pentru ce ai tu acolo vei folosi:
Code:
[expr $suma + $proces]
__________________
Fuck oFF!
arcade is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +3. The time now is 07:37.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.