egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unrar/unzip/tar

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
oups
Voice


Joined: 16 Aug 2016
Posts: 1

PostPosted: Tue Aug 16, 2016 8:40 am    Post subject: Unrar/unzip/tar Reply with quote

hi
i search a solution for my script.
i would like Unrar/unzip/tar into a specific folder when a command is write in my chan.

$isy_(unrar_data) : my folder
Code:

set rarvar [glob -directory $ndir *.rar]
      set rarfile [string trim [lindex [split $rarvar "/"] end]]   
      catch { exec unrar x $ndir/$rarfile $isy_(unrar_data)/} data

but i don t understand why he doesn't work.
You can help me please
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber