| Pages: 1 [2] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Frug
Repo Industries R.E.P.O.
|
Posted - 2008.02.29 01:57:00 -
[31]
Nice, but unfortunately not worth installing cygwin for :\
- - - - - - - - - Do not use dotted lines - - - - - - - If you think I'm awesome, say BOOO BOOO!! - Ductoris Neat look what I found - Kreul Hey, my marbles |

Xaen
Caldari Caritas.
|
Posted - 2008.02.29 16:16:00 -
[32]
Originally by: Maglorre
Originally by: Xaen The list of files to delete is generated based on files that exist. The only way this could be a problem is if you start the script the delete one of the log files while it's aggregating that type, but before it gets to that file. And then it will just throw an error and do the rest of them.
Yeah, that's not an issue.
Originally by: Xaen
Originally by: Maglorre If your append command fails for some reason then the original file is still trashed.
True, but you'd have to run out of disk space or some other catastrophic problem. And it's not very likely since it deletes them as it goes. The resulted aggregated files should take up the same amount of space on disk. So for in order for it to fail you'd have to have one enormous file be the first one aggregated and very little disk space left.
Well, you are correct that it's not likely but that's no excuse to not implement correct error handling .
Just because you can't think of any likely modes of failure doesn't mean there is none. I try to keep this in mind whenever I'm writing code and it has saved my bacon on more than one occasion.
Take this as an example. Modify your script so that the aggregated logs are stored on a remote machine. Start the script then turn off your router.
Cheers
lol - Support fixing the UI|Suggest Jita fixes|Compact logs |

Xaen
Caldari Caritas.
|
Posted - 2008.02.29 16:17:00 -
[33]
Originally by: Frug Nice, but unfortunately not worth installing cygwin for :\
Meh, cygwin is worth it on it's own for me. - Support fixing the UI|Suggest Jita fixes|Compact logs |

Lil'Red Ridin'Hood
Agony Unleashed Agony Empire
|
Posted - 2008.03.06 11:26:00 -
[34]
Originally by: Lil'Red Ridin'Hood
Originally by: Lil'Red Ridin'Hood When I get home, I'll build a small executable doing the same. I hope you don't mind if I copy your idea for that.
No need for cygwin then. Select log-folder, click run, cross your fingers, done.
I haven't forgotten about this, only had RL get in the way a bit. I'll do my best to have a version ready by the end of the weekend. I'd hope to have one ready before that, actually.
It took me longer than I anticipated, but it has been started. Check it out. Please stick to the linked thread for comments. This thread is about Xaen's script.
|

Norwood Franskly
Minmatar Fleet of the Damned United Freemen Alliance
|
Posted - 2008.03.06 11:38:00 -
[35]
Could you use perl instead of bash, make it easier on the windows people as they wouldn't need cygwin, perl should be able to replace your sed expression pretty easily.
|

Xaen
Caldari Caritas.
|
Posted - 2008.03.06 15:17:00 -
[36]
Originally by: Norwood Franskly Could you use perl instead of bash, make it easier on the windows people as they wouldn't need cygwin, perl should be able to replace your sed expression pretty easily.
Installing cygwin isn't any more difficult than installing perl.
The goal wasn't "Make a logfile compactor for the EVE Online populace". What happened was I got tired of windows choking on so many files. So, already having cygwin installed and sufficient bash skills, I wrote the scripts to do it. Then I thought, "Why not share it?"
If you know perl and want to create the script, by all means have at it. - Support fixing the UI|Suggest Jita fixes|Compact logs |

Barzam
|
Posted - 2008.03.06 15:24:00 -
[37]
No PowerShell syntax? I'd rather not download extra crap to hog my system.
|

Garat Mant
Minmatar Moons of Pluto
|
Posted - 2008.03.06 15:37:00 -
[38]
Originally by: Barzam No PowerShell syntax? I'd rather not download extra crap to hog my system.
Cygwin doesn't install any services or processes* that run all the time. It just takes up space, and not much space at that, considering you are getting a close to full UNIX environment to mess around in.
Cygwin is also great because you can go from Mac to Linux to Windows and still run (or at least be familiar with) all of the commands.
* you can choose to install services from Cygwin, but not as part of the installer. I have Cron installed on all our windows PCs to run rsync backups to our home linux server. --
|

z0de
Gallente The Bastards
|
Posted - 2008.04.19 02:59:00 -
[39]
how do I do this bit
"Then add that directory to your $PATH."
|

EnslaverOfMinmatar
Amarr Adv Asteroid Mining and RD Sobaseki Corporation
|
Posted - 2008.04.19 03:05:00 -
[40]
I just delete them periodically
|

Scilent Enigma
Minmatar Vae Victis Inc.
|
Posted - 2008.04.19 07:10:00 -
[41]
Originally by: z0de how do I do this bit
"Then add that directory to your $PATH."
Just open up your start menu, Rightclick "My Computer (or is it this computer in english?", in the window that pops up click the advanced tab, at the bottom of the tab there is a button named Environmental variables (or something similar) click it. There are two fields in the window that pops up, in the lower one locate the "Path" variable, mark it by clicking on it then click "Edit" below the window. Add a ; to the end of the variable value line and add the path to whatever you wish to add to the path, for example ";C:\Program\Python". Afther that you might need to restart or relog your computer for the changes to come into effect (not sure which) and then you can invoke the executables in that directory anywhere in the system without having to fill out the full path to the files.
|

z0de
Gallente The Bastards
|
Posted - 2008.04.19 08:40:00 -
[42]
Originally by: Scilent Enigma
Just open up your start menu, Rightclick "My Computer (or is it this computer in english?", in the window that pops up click the advanced tab, at the bottom of the tab there is a button named Environmental variables (or something similar) click it. There are two fields in the window that pops up, in the lower one locate the "Path" variable, mark it by clicking on it then click "Edit" below the window. Add a ; to the end of the variable value line and add the path to whatever you wish to add to the path, for example ";C:\Program\Python". Afther that you might need to restart or relog your computer for the changes to come into effect (not sure which) and then you can invoke the executables in that directory anywhere in the system without having to fill out the full path to the files.
Just like that eh?
how obvious 
thanks for explaining.
|

Xaen
Caldari Caritas.
|
Posted - 2008.05.01 13:55:00 -
[43]
Originally by: Scilent Enigma
Originally by: z0de how do I do this bit
"Then add that directory to your $PATH."
Afther that you might need to restart or relog your computer for the changes to come into effect (not sure which)
You don't have to do either of those things.
Just close and reopen your command/bash window. Sadly, it's one of the few things you can change in windows that doesn't require restarting. - Support fixing the UI|Suggest Jita fixes|Compact logs |
| |
|
| Pages: 1 [2] :: one page |
| First page | Previous page | Next page | Last page |