Search Results

Search: Posts Made By: mschwage
4,268
Posted By mschwage
Thank for the reply. Here's my replies: No...
Thank for the reply. Here's my replies:

No they are not the same size. For the bad machine, the directories were 10 times as large. I have asked the developer to tune his application so the...
4,268
Posted By mschwage
Filesystem mystery: disks are not busy on one machine, very busy on a similar box
Hi,
We have a filesystem mystery on our hands. Given:

2 machines, A and Aa.
Machine Aa is the problem machine.
Machine A is running Ubuntu, kernel 2.6.22.9 #1 SMP Wed Feb 20 08:46:16 CST...
1,415
Posted By mschwage
When editing your script using vi, use this exact...
When editing your script using vi, use this exact sequence:

^V^H

Where ^V is a "Control-V" and ^H is "Control-H".

Example:

echo "hello^V^H^V^H^V^Hwow"

will produce as output, when run:...
Forum: Red Hat 10-23-2008
19,055
Posted By mschwage
How do sa1/sar time intervals work?
Hi,
I have set up sar on my RedHat and Fedora Linux systems. I am running sa1 from cron:

0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 &


The 1200 and 3 parameters tell sa1 to save data every 1200...
7,819
Posted By mschwage
Dude, just do a search for putty title. Should...
Dude, just do a search for putty title. Should be a bunch of stuff, including my awesome technique...
:D

...Never mind, I am kind. The link is here:...
13,163
Posted By mschwage
Thanks, Jim, but I've been all over that page. ...
Thanks, Jim, but I've been all over that page. The one part that gave me hope is but then I realized that it didn't apply. It says that the processes will write during this anomalous period, but...
13,163
Posted By mschwage
Not sync, really- but pdflush
I should mention that I'm not really concerned so much about sync but rather on pdflush itself. ...The mechanisms they use may be different. Anyway, I notice that if I modify the pdflush behavior...
13,163
Posted By mschwage
Does sync(2) block writes until completed?
Gentle readers,
I am trying to observe system behavior on our RHEL 5.2 machines. I notice that, it appears to me, based on random iterations of

dd if=/dev/zero of=/var/tmp/bigfile bs=1024...
Forum: Linux 09-23-2008
7,776
Posted By mschwage
Inside sample, put this: #!/bin/sh db2...
Inside sample, put this:

#!/bin/sh
db2 connect to bas39 2>/tmp/db_error$$
exit_code=$?

while read line ; do
echo "$line" | grep -q "SOMEERROR" && echo "You got some error there, buster"...
2,006
Posted By mschwage
Try to run the script without the initial dot...
Try to run the script without the initial dot (.).

Also cat the script without the initial dot.

What happens in these two cases?

What kind of system are you on? Linux? In that case, you're...
2,505
Posted By mschwage
Try using the full pathname to sendmail,...
Try using the full pathname to sendmail, /usr/lib/sendmail
1,406
Posted By mschwage
#!/bin/ksh echo "Give me your best shot: " ...
#!/bin/ksh
echo "Give me your best shot: "
read bestshot
echo "The user's best shot was ${bestshot}."


Fancy UNIX shell programming trick:


printf "Hit me: "
stty raw
hit=`dd if=/dev/tty...
8,457
Posted By mschwage
cat * | sort > /tmp/alllines uniq -d...
cat * | sort > /tmp/alllines
uniq -d /tmp/alllines > /tmp/repeatedlines

-mschwage
1,397
Posted By mschwage
The man pages are your friends. Try man grep ...
The man pages are your friends. Try man grep Specifically, in this case it means to be quiet. No output will be produced- the default is to print to the screen what grep finds. In your case, you...
2,866
Posted By mschwage
In this case, using s#$var1#$var2# should work as...
In this case, using s#$var1#$var2# should work as well as s#${var1}#${var2}#. Not sure why yours failed, I guess we'd need to see some more specific examples of your code and variable contents.
...
4,761
Posted By mschwage
Could you be more specific?
Could you be more specific?
2,866
Posted By mschwage
BTW, you should be able to answer your question: ...
BTW, you should be able to answer your question: "Can ?? be a prob?"

Create a file- call it tmpfile- with the contents:
wow$$blah

Now try it:
sed -e 's#$$#foo#' tmpfile

Learn to divide...
2,866
Posted By mschwage
Your VALUE is using backticks instead of single...
Your VALUE is using backticks instead of single quote characters.

Could that be the issue?

d really should work unless there was a pound sign in your ${oldDate} or ${newDate} variables.

Some...
4,761
Posted By mschwage
cd /bb/data for f in rptmgr* ; do mv $f...
cd /bb/data
for f in rptmgr* ; do
mv $f /bb/data55/$f.new
done


...efficient enough? :D
3,564
Posted By mschwage
Here's an easy solution: grep " Jun "...
Here's an easy solution:

grep " Jun " backupcount.log > June.stuff

Then,
grep -v " Jun " backupcount.log > tmpfile.without.June
mv tmpfile.without.June backupcount.log


BTW, your message...
1,850
Posted By mschwage
Got it. No you don't... :p Anyway,...
Got it.


No you don't... :p

Anyway, all wisecracks aside, you're actually pretty close. Here's your solution:


for y in `ls DIV*`
do
temp=`echo $y | sed -e...
3,399
Posted By mschwage
/bin/time tar cvf /dev/st0 /mnt/junk 2>>...
/bin/time tar cvf /dev/st0 /mnt/junk 2>> /root/benchlog

time may be a shell builtin so I give it the exact pathname. If you want to use a shell builtin (eg, you are using bash), do:

{...
5,403
Posted By mschwage
Problem number 1 is you're mixing date math with...
Problem number 1 is you're mixing date math with integer math. You cannot add 1 to your "0530" and expect to get the next day. For example, there is no integer "0530". There is an integer "530",...
Forum: Solaris 06-05-2008
3,583
Posted By mschwage
The original poster was looking for a...
The original poster was looking for a "development kit", as in an IDE for Perl. This is different than the Perl distribution which I assume they already have.
3,261
Posted By mschwage
No problem. Shell scripting is weird. I've been...
No problem. Shell scripting is weird. I've been doing it since 1983 and it's still weird. Happy to help.

Perl is much better, but still weird.

I'm going to start learning Python. I think...
Showing results 1 to 25 of 102

 
All times are GMT -4. The time now is 02:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy