LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

home directory size monitoring script

Posted 11-06-2009 at 01:15 AM by allancuntapay

newbie here. am doing script on monitoring my directory /home that if it gets greater or equal to 86, then it will prompt me overload, else its fine.



please help what's wrong with my script. thanks


SIZE='df -h /home | /bin/awk '{ print $5 }' | grep -v Use% | sed '/%//''
if [ $SIZE >= "86" ]; then
echo "overload"
else
echo "ok"
fi

Allan
LQ Newbie
Posted in Uncategorized
Views 1081 Comments 0 allancuntapay is offline
Old

Simple Shell Script Calculator

Posted 11-05-2009 at 11:59 PM by anirudhm

Quote:
Originally Posted by anirudhm View Post
Hi,
Cant we try simple calculator script as below:


echo "enter first number"
read a
echo "enter second number"
read b
echo "enter operand"
read c
calc=`expr
$a "$c" $b`
echo the result is $calc[/QUOTE]
LQ Newbie
Posted in Uncategorized
Views 1295 Comments 0 anirudhm is offline
Old

Phone calls from Microsoft

Posted 11-05-2009 at 03:26 PM by pereb

Pretty funny stuff, in a sad sort of way.

http://social.answers.microsoft.com/...8-0079764bb001

I can't believe that people fall for this. Why would Microsoft call someone to tell them they have a virus? Although, the script they use is somewhat humorous.
"Are you online now?" - followed by "Is your computer running slowly?"

The sad part is that I have a mother in law...
LQ Newbie
Posted in Uncategorized
Views 2861 Comments 1 pereb is offline
Old
Rating: 3 votes, 3.67 average.

"Slackware Linux assumes you're smart."

Posted 11-05-2009 at 02:56 PM by Lufbery (The Slacker's Blog)

I use Slackware Linux at home, where I play systems administrator for my wife and me -- and eventually our child(ren, after the next one is born in December). I'm going to quote an interview with Alien Bob to explain why I use Slackware:

Quote:
To me, Slackware’s philosophy has a different angle that sets it apart from all the others. To this day, Slackware has an extremely lean design, intended to make you experience Linux the way the software authors intended. This is accomplished
...
Senior Member
Posted in Uncategorized
Views 2168 Comments 1 Lufbery is offline
Old

The 6th ArchToad's Laws of Scripting

Posted 11-05-2009 at 10:25 AM by archtoad6

Preface
"Clarity, Brevity, Generality"
Paterned after the "Liberté, égalité, fraternité" of the French Revolution, these are the watch words with which I introduced a presentation on programming I gave to HLUG (H=Houston) about 4 years ago. I quote them here, 1st because they are appropriate, & 2nd because I want my copyright & other intellectual property claim on the public record.

I have strong opinions on programming, especially scripting...
Senior Member
Posted in Uncategorized
Views 1469 Comments 0 archtoad6 is offline

  



All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration