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 

[Request] Folder (action)List Script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
fuzzles
Voice


Joined: 13 Aug 2005
Posts: 4

PostPosted: Sat Aug 13, 2005 12:14 am    Post subject: [Request] Folder (action)List Script Reply with quote

Hi,

I wanted to know if it is possible to code a script that can do the following things :

1. Paste changes done in one folder into a Channel [just directorys created/removed] [possible with an option to log files created/removed]inclusive Date and Time.
2. Create a "log"file with every action logged.
3. possible a .sfv checker.

thanks for any help or information.

ps: sorry for my bad english.
Back to top
View user's profile Send private message
greenbear
Owner


Joined: 24 Sep 2001
Posts: 733
Location: Norway

PostPosted: Sat Aug 13, 2005 12:25 am    Post subject: Reply with quote

oh c'mon, there must be like a billion warez sitebot scrits out there already.
google is your friend.
Back to top
View user's profile Send private message Send e-mail
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 13, 2005 12:43 am    Post subject: Reply with quote

that's something which should be integrated in your dcc/ftp/warez/whatever-serve script/bot, so kindly redirect your request to its author(s)
Back to top
View user's profile Send private message Visit poster's website
fuzzles
Voice


Joined: 13 Aug 2005
Posts: 4

PostPosted: Sat Aug 13, 2005 2:07 am    Post subject: Reply with quote

Sorry but i'm not into stuff like Warez, i dont want something that checks ftps or whatever, just check a local directory for a new dir an paste it into a channel.

So i just wanted some hints or maybe some informations or code pieces.

cu
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 13, 2005 2:24 am    Post subject: Reply with quote

just curious, why would the users on your IRC channel want to know when a new directory is created in your shell account? i.e. what's the purpose of such script?
Back to top
View user's profile Send private message Visit poster's website
fuzzles
Voice


Joined: 13 Aug 2005
Posts: 4

PostPosted: Sat Aug 13, 2005 1:19 pm    Post subject: Reply with quote

not other users, it is just for me, so a message/query would be ok too.

Im running serveral Webservers with daily Backups on a Remote Machine, they all get their own folders and archivs with sfv files [avoiding crc errors].
At the moment i recheck this with serveral mails a day, it works but it would be better ifthe output would be put into a chan or into a query/message [the only prob is the static nick here..]

cu
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 13, 2005 2:21 pm    Post subject: Reply with quote

this will scan the specified directory every minute for created/removed dirs, report those to you and log to bot's main logfile
Code:

set you yournick
set dir /home/you/www
bind time - * foo
proc foo {m h d mo y} {
   global bar dir you
   if ![info exists bar] {
      set bar [glob -dir $dir -types d -tails *]
   } else {
      set moo [glob -dir $dir -types d -tails *]
      foreach d $moo {
         if {[lsearch -exact $bar $d] == -1} {
            putserv "privmsg $you :created $d"
            putlog "created directory $d"
         }
      }
      foreach d $bar {
         if {[lsearch -exact $moo $d] == -1} {
            putserv "privmsg $you :removed $d"
            putlog "removed directory $d"
         }
      }
      set bar $moo
   }
}
Back to top
View user's profile Send private message Visit poster's website
fuzzles
Voice


Joined: 13 Aug 2005
Posts: 4

PostPosted: Sat Aug 13, 2005 5:10 pm    Post subject: Reply with quote

Big thx for help Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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