Really sounds like you are taking a class and want us to do your homework for you.
A. kill B. find C. grep D. cut E. tail F. Multiple ways, not sure what you really mean here. 1. rm access.log | touch access.log 2. if [ `ll access.log | cut -d " " -f 5` -gt "243" ]; then rm access.log | touch access.log; fi 2a. Put above in shell script, make script executable, have script run by cron once a day. Jeremiah E. Bess Network Ninja, Penguin Geek, Father of four On Fri, Sep 4, 2009 at 06:29, Lukasz Matuszewski < [email protected]> wrote: > > Write commands, which are able to do following from shell level: > A. send a signal to desired process > B. find files which names are matched to desired pattern > C. find files whos contents are matched to desired pattern > D. cut a range of characters from every line > E. view last N lines from desired file > F. execute desired program step by step (debug him) > > File access.log from server www has reached allowed size for file > system. > 1. How to set file size to 0 using shell command. > 2. Write a script in whatever language ( perl, bash itp. ) checking > once a day size of the access.log file and in a circumstance that he > reached its maximum capacity ( eg 2 GB) he will set size of the file > to 0 in the simples case command - it is allowed to use cron but with > telling the how to registry it/how to run it. > > III. What command with changing settings in policies GPO on domain > controller, we can force to refresh rules ? > > Waiting for quick and wholetelling reply...thanks in advance. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
