10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a several UNIX (sun solaris and HPUX) database server via FTP and pull the sizes of the listener/alert log files from specified server directory on the remote machines.
1. I want the script... (7 Replies)
Discussion started by: mikebantor
2. Shell Programming and Scripting
I dont know if this possible. I need to watch a directory and if any file gets appeneded with a particular entry say, nologin.php, we should get output of that. (1 Reply)
Discussion started by: anil510
3. Shell Programming and Scripting
How to check log size every 10min. by script (can use crontab)
if log size not change with alert "Log not update"
Base run on SunOS 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Tue Jan 31... (3 Replies)
Discussion started by: ooilinlove
4. Shell Programming and Scripting
In Solaris, and other distros without the "watch" command, use the following code watch for files added to a directory.
find $watchdir -newer $newfile;
touch -a -m $newfile;
... (10 Replies)
Discussion started by: os2mac
5. Shell Programming and Scripting
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
6. Shell Programming and Scripting
How can I do a ksh script to watch a log file for 2 specific alarms that have one this string : "Connection Error" and the other one: "Failure in sending". I would like to watch for these two alarms in the log and then if each of them repeats for about 30 times to go kill 2 processes.
... (1 Reply)
Discussion started by: Pouchie1
7. UNIX for Dummies Questions & Answers
i would like to copy files from 1 location to a nother, but it has only to copy files which are newer or have a different filesize.
all has to be logged to a copy.log file (als skipped files should be in the log)
is this possible with the cp command (1 Reply)
Discussion started by: arnoldg
8. Shell Programming and Scripting
i am facing a problem in merging two files using awk,
the problem is as stated below,
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
9. Shell Programming and Scripting
I have one file stat.
Stat file contents are as follows: for example.
Now i... (1 Reply)
Discussion started by: davidpreml
10. UNIX for Dummies Questions & Answers
I would like to limit the size of syslog log files. Is there a setting I can enter in syslog.conf that does this for me. Ideally I would like something along the lines of a circular buffer of N bytes.
P.S. I'm a new user, and this site is awesome. I wish I found it earlier.
David (1 Reply)
Discussion started by: dmirza