SOS - perl script

2007-05-08 Thread Craig Schneider
Hi Guys Following is a log file extract which I desperately need to covert to coma separated for an entire logile called access.log (squid proxy log) for reporting purposes. There has been some internet surfing abuse on a client's network. 1178606984.937 1 192.168.1.55 TCP_DENIED/407 1904 PO

RE: looping through a file

2007-05-07 Thread Craig Schneider
Hi Guys Following is a log file extract which I desperately need to covert to coma separated for an entire logile called access.log (squid proxy log) for reporting purposes. There has been some internet surfing abuse on a client's network. 1178606984.937 1 192.168.1.55 TCP_DENIED/407 1904 PO

Converting to log file to CSV

2007-04-11 Thread Craig Schneider
Hi Guys Thanks for all the help with the directory sorting, I'm still very new to Perl :) I'm now trying to use Perl to convert the below log file to CSV. 1176301248.555180 dhr-hr3.duys.co.za TCP_MISS/200 447 GET http://support.duys.co.za/DUYSIT/WebResource.axd? - DIRECT/192.168.10.3 image/g

Sorting dir output

2007-04-10 Thread Craig Schneider
Hi Guys How could I exec a 'dir' command on a dos system and put the output in an array, sort by date and the files that are older than 3 days be moved into a folder called 'history' Thanks Craig -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] htt

Sysadmin script for POP3

2007-03-15 Thread Craig Schneider
Hi Guys I am very new to perl. This is what I need to do: I need to parse text files in the /etc/mail folder for account names. The contents of the text file looks like this: # # Springbok Trucking # sean: [EMAIL PROTECTED] seanm:[EMAIL PROTECTED] bruce: