Operating System - HP-UX
1747986 Members
4364 Online
108756 Solutions
New Discussion юеВ

Re: Dam script will not work - ;^0

 
SOLVED
Go to solution
Madhu Sudhan_1
Respected Contributor

Re: Dam script will not work - ;^0

Ok, then replace c="current X 3" with c=`expr $current \* 3`

...Madhu
Think Positive
James R. Ferguson
Acclaimed Contributor

Re: Dam script will not work - ;^0

Hi Paula:

Judging from the responses (and I admit, I first looked at this post from a syntatic view too!) I can't help but wonder what this says about us! ;-)

Timothy, loops such as those you suggest are detrimental to processors ...

Paula, we can always count on you to provide much needed levity in an otherwise all too serious day!

Regards to all!

...JRF...
Paula J Frazer-Campbell
Honored Contributor

Re: Dam script will not work - ;^0

Hi Richard

Why not do a sleep until

ie.e.

Sleep until interested
or
Sleep until retirement
or
Sleep until sex = possible
or
Sleep until lottery = win

Paula
If you can spell SysAdmin then you is one - anon
Madhu Sudhan_1
Respected Contributor

Re: Dam script will not work - ;^0

Can we get to see /usr/sysadmin file ?

...Madhu
Think Positive
linuxfan
Honored Contributor

Re: Dam script will not work - ;^0

Hi Paula,

This always work for me

==========Cut here============
while true
do
sleep 1
done
==========Cut here============

-Ramesh

They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: Dam script will not work - ;^0

Hi Paula,


were you really bored ? that you started writing this script?

anyway i think you should give yourself 10 points for this one ;)

Sure attracted a lot of attention and was the most answered question of the day.

Hey that's an idea. QOTD. whoever asks the QOTD gets 10 points.

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
Jim Turner
HPE Pro

Re: Dam script will not work - ;^0

# make love
Make: Don't know how to make love. Stop.

Dammit.

Well, the wife will be happy to learn that there's at least *one* need that computers can't satisfy. hehehehehe
Paula J Frazer-Campbell
Honored Contributor

Re: Dam script will not work - ;^0

Hi Ramesh

No not bored but it has been a ?!"?$ of a day,

It is 21:35 here in London and I should have gone home hours ago.

I have had problems with x25 - which turned out to be a developer?s script -

File disappearing - Universe database indexes

Etc.

I just thought I would post my script before going home and have spent so much time laughing at the replies that I lost track of time.

Madhu I am not sure if you are serious or not?

If you are please look at the other posts to my question.

xxx

Paula
If you can spell SysAdmin then you is one - anon
John Bolene
Honored Contributor

Re: Dam script will not work - ;^0

Sounds like we are hashing old hashes again. Maybe you need to do it in perl.......

Then again, why do it at all??????

Sysadmins are supposed to be lazy and do it the easy way.

Tell that to my wife........
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Madhu Sudhan_1
Respected Contributor
Solution

Re: Dam script will not work - ;^0

Yeah ! Iam serious, Iam trying to solve the problem you have, without cracking jokes.

I have spotted one more problem in your script which is, when you use cat /usr/sysadmin | awk '{ print $3 }', This particular statement returns the third field of all the records in the file /usr/sysadmin which you are trying to compare with "A Lot" and "Not Enough". This comparison will never be successful.

Thanks,
Madhu

Think Positive