9 More Discussions You Might Find Interesting
1. Solaris
Hi all,
I have enable sar and the sa cron jobs in the sys account.
I would like to however, keep only 1 month of data.
Can i check for Solaris10, does sa2 do automatic purging of logs in /var/adm/sa/ that are 1 week old ?
-- Answer = yes ( in "/usr/lib/sa/sa2" if you open the script,... (2 Replies)
Discussion started by: javanoob
2 Replies
2. Shell Programming and Scripting
Hi guys,
I am trying to store some output in a file and then compare it to another file.
I am gathering information from 2 commands:
cat /opt/jbin/server.log.tmp > A
grep "ephemeral" /opt/jbin/log/server.log.2015-05-02-18 > B
The contents of both file are the same. This means if I do a... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
3. Shell Programming and Scripting
Hi..
I need to run the script on hourly basis.
How do I write the crontab on hourly basis i.e, 9:00, 10:00.....22:00.. 23:00 hours
Please let me know if the below is correct one for crontab on hourly basis.
00 * * * * ksh myscript.ksh > /dev/null
Regards,
John (3 Replies)
Discussion started by: scriptscript
3 Replies
4. Shell Programming and Scripting
I have a common data folder with files like x* which is accessed by 3 unix servers.
Now each server will try to pick one file form this folder and move it to its local folder.
How to maintain file concurrency in this case?I dont want the same file to be accessed by more than one process. (2 Replies)
Discussion started by: prasperl
2 Replies
5. Shell Programming and Scripting
Hi everyone,
I have a script that takes command line entries, for example
# script.sh 1 "2" 3 4 "5"
I want to be able to maintain the integrity of this command line such that it is processed with the double quotes i.e.:
VAR1=1
VAR2="2"
VAR3=3
VAR4=4
VAR5="5"
The double-quotes... (2 Replies)
Discussion started by: procux
2 Replies
6. Shell Programming and Scripting
Hey all,
I have a set of 5-second data as shown below. I need to find an hourly average of this data.
date co2
25/06/2011 08:04:00 8.30
25/06/2011 08:04:05 8.31
25/06/2011 08:04:10 8.32
25/06/2011 08:04:15 8.33
25/06/2011 08:04:20 ... (5 Replies)
Discussion started by: gd9629
5 Replies
7. UNIX for Advanced & Expert Users
How can I maintain different version control account(any common unix based version control like CVS,RCS,SCCS..) from a single UNIX Login Account.
Many programmers share a common UNIX user/login account.How do they maintain separate Version Control Account. (1 Reply)
Discussion started by: johnbach
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
There is a command by which you can maintain a list of commands previously typed.
By this you dont have to type in the same command again and can use the up-down arrows to scroll through the list. Which is this command, i am not able to recall. (8 Replies)
Discussion started by: appledrive
8 Replies
9. UNIX for Advanced & Expert Users
I'm new at the entire spectrum of printing in Unix, and especially when--as I understand it--the printers are on a Windows server. At work we have a variety of printers and printing from Windows, or from Unix via lp or lpr works fine.
The initial problem: Our users will be printing up to 20... (1 Reply)
Discussion started by: effigy
1 Replies