Jump to content
  • 0

Clear logs


YoYoo

Question

i want to create a .sh file in the scope of deleting the server logs . I have the logs in /usr/home/game/logs/channel1/core1 or core2 ... Can anyone help me because i don't know the unix language and the cd command works really strange . Sorry for my bed english

Link to comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

i alrdedy made this and i create a (a.sh) file with 

"rm -rf /usr/home/game/logs/*/*/*/"

 

when i execute it mannualy in putty the command it works and when i use sh a.sh , rm function doesn't work , it doesn't delete the files 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.