Thank you everyone for your help. I did change the date to a 3 to run on Wednesdays however, I have to change the file permissions to 750 to make it executable. I tested and it runs gfreat.
Again thanks for your help.
I have written a small script to run on our servers. I wanted to place it in the crontab so it will run automatically. When I place the entry in the crontab, it does not run. This is what I have entered.
00 13 * * 4 /weekly
I want the script to run at 1pm on wednesdays.
The file is located in...
Well from the last post, it appears that I can add the command
find / -name core | xargs rm
to the end of the script. Basically running the find command twice. Once so it will output to a file and at least have a record of what core files were there and then again to remove the files...
Hello and a big thank you to everyone that has helped me in the previous posts. I am looking for a little more assistance now. I am running a simple script to find files named "core" once these files are found and written to a file, I would like to remove the core files. The only thing I have is...
This is what I get when I run either of the two commands suggested.
> tail -f 'ls -t actv.0* | head -1'
UX:tail: ERROR: Cannot open ls -t actv.0* | head -1: No such file or directory
Hello again,
I am trying to find a way to find a file by name and date/time created and then tail -f the file. Is there an easy way to do this?
Basically I have 20 files named ***.001 - ***.020. These are files that are continuously writing logs. I need to be able to find the newest file...
Thank you thank you thank you.
Now I can remove the script from all the servers except the first one.
BTW it works. I do not know why I did not think of this.
This is why these forums are so great.
Ok I have something I can not figure out. I am trying to do a few things here. I have the basic script down for one server but I need to run these comands on six servers. I need only one script with all of the output compiled to one (1) file.
Here is the script.
#!/bin/sh...
I just threw it in there. I am not sure if it actually needs it. It takes about 15 to 20 and sometime up to 30 seconds to find the "core" files on the system.
Thanks for the help!
as I stated before, I am new to unix scripting so not much. I need to find files, disk status, and volume and plexes then combine them together and send a .txt file via email them to a specific email address. I also need to find the same files on a standby system in which I can telnet to but I...
I need a little help with a script.
1. run a find command.
2. telnet to antoher server and run a find command.
3. exit to origianl server.
4. run another find command.
5. run 1 last find command.
6. save all the ouput text to a text file.
7. email to a specific address.
Fairly new but I do know...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.