- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Dam script will not work - ;^0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:09 AM
тАО09-05-2001 11:09 AM
I have written a new script but no matter how I try it will not work.
I have set it to 755 and it is owned by me but still refuses to carry out its commands.
Any suggestion or other scripts gratefully received.
---------------- Cut here----------------
#/bin there done that
##########################################
# One for us :- ;^) PJFC Sep 2001
##########################################
# The next bit
# Age
a=`cat /usr/sysadmin | awk ?{print $1}
if `echo $a != 21`
then a=21
fi
##########################################
# Sex
b= `cat /usr/sysadmin | awk ?{print $2}?
if `echo $b != ?A lot?`
then b=?Sex god?
fi
##########################################
# Income
c= `cat /usr/sysadmin | awk ?{print $3}?
if `echo $c != ?Not Enough?`
then b= ?current x 3?
fi
--------------Cut here-------------------
Paula
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:20 AM
тАО09-05-2001 11:20 AM
Re: Dam script will not work - ;^0
Are you missing a quote at the end of
your a's definition??
b's definition.. c' definition also...
a=`cat /usr/sysadmin | awk '{print $1}'`
Try with these correct quotes for other variable settings also.
-Sri
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:26 AM
тАО09-05-2001 11:26 AM
Re: Dam script will not work - ;^0
#Aged
a=`cat /usr/sysadmin |awk '{print $1}'`
if [ $a != 21 ]
then
a=21
fi
#Sexed
b=`cat /usr/sysadmin|awk '{print $2}'`
if [ "$b" = "A lot" ]
then
b="Sex God"
fi
#Incame
c=`cat /usr/sysadmin |awk '{print $3}'`
if [ "$c" != "Not Enough" ]
then
b="current x 3"
fi
try this and see if it works?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:26 AM
тАО09-05-2001 11:26 AM
Re: Dam script will not work - ;^0
I have put the quote in but still problems
Read the script and what it is trying to do --
It is just for fun.
#/bin there done that
##########################################
# One for us :- ;^) PJFC Sep 2001
##########################################
# The next bit
# Age
a=`cat /usr/sysadmin | awk ?{print $1}
if `echo $a != 21`
then a=21
fi
##########################################
# Sex
b= `cat /usr/sysadmin | awk ?{print $2}?`
if `echo $b != ?A lot?`
then b=?Sex god?
fi
##########################################
# Income
c= `cat /usr/sysadmin | awk ?{print $3}?
if `echo $c != ?Not Enough?`
then c= ?current x 3?
fi
xxx
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:28 AM
тАО09-05-2001 11:28 AM
Re: Dam script will not work - ;^0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:29 AM
тАО09-05-2001 11:29 AM
Re: Dam script will not work - ;^0
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:31 AM
тАО09-05-2001 11:31 AM
Re: Dam script will not work - ;^0
I get the following message when I type in 'sex':
sex: not found
Sounds about right.
The multiplier for your salary seems low. I'd try upping it to x 5.
:)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:35 AM
тАО09-05-2001 11:35 AM
Re: Dam script will not work - ;^0
See meee :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:36 AM
тАО09-05-2001 11:36 AM
Re: Dam script will not work - ;^0
I have tried the x5 but all I get is: -
Insufficient recourses
I have looked in money.log and the last entry is a negative value could this be the problem.
>>;-0
paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 11:38 AM
тАО09-05-2001 11:38 AM
Re: Dam script will not work - ;^0
Step 1: We should all be 21
Step 2: We should all be sex gods or goddesses
Step 3: We should all be making triple what we are making now
Sounds good to me!!!!!!!!!