10-15-2009
Let me be perfectly clear.
People who post homework and repeatedly break the homework posting rules will be banned.
Cheaters are not welcome here.
If you post homework, and do not complete the homework template completely and accurately, you will be banned.
Moderators, please enforce this important forum rule. Thank you.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hiii
I actually intent to check the integer or floating point number input by user i.e. 23, 100, 55.25, 12.50 ..etc. However, when someone input strings or alpha character, my program has to show invalid input.!! Is there any Unix shell script syntax can help me to check ?
Thanking you (2 Replies)
Discussion started by: krishnampkkm
2 Replies
2. Shell Programming and Scripting
Hi All
I've made a few scripts which using GDAL extract the value of a pixel within a given raster. The purpose is to work out the combine value of every pixel. I thought there may have been an easier way to do this but alas!
The code below extracts the pixel value at position X Y. The... (3 Replies)
Discussion started by: StudentFitz
3 Replies
3. Shell Programming and Scripting
Hi,
This is most likely a dumb question but I could not find answer to it elsewhere.
I'm building a simple menu with case /esac and want to read user's input:
Please enter XYZ ; read XYZ
How do I take the value of XYZ and insert it as a variable $XYZ in file file.txt ?
I may need to... (9 Replies)
Discussion started by: svetoslav_sj
9 Replies
4. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
5. Shell Programming and Scripting
#!/bin/ksh
echo DB LIST
ps -ef | grep pmon | grep -v grep | awk -F_ '{print $3}' | sort
db_up=`ps -ef | grep pmon | grep -v grep | awk -F_ '{print $3}' | sort`
echo
echo "Enter database name from the above list"
echo
read ORACLE_SID
echo
echo Database selected is: $ORACLE_SID
echo
... (10 Replies)
Discussion started by: crazy_max
10 Replies
6. Shell Programming and Scripting
Hi all,
I am trying to write a script to be able to
Run top command
Pick the PIDs that are taking more than 90% of CPU time
Get more details like what is the script name and location for that PID
Script should run until I manually kill it by ctrl + C
I have come up with following script... (3 Replies)
Discussion started by: pat_pramod
3 Replies
7. Shell Programming and Scripting
Hi,
I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).
I want to pass this data (as argument) to curl command using system function.
But getting Too many arguments error due to length of string data(payloadBlock).
I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies
8. Shell Programming and Scripting
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
9. Shell Programming and Scripting
Hello,
I am looking for a method to use in my bash script which allows me to use long strings with all special characters.
I have found that printf method could be helpful for me but unfortunately, when I trying
root@machine:~# tevar=`printf "%s%c"... (2 Replies)
Discussion started by: elxa1
2 Replies
10. UNIX for Beginners Questions & Answers
cat filename| awk '{ $1=""; print $0}'
in my file there are few lines that has more than 3000 characters per line and as soon as I run the above command it cores, strings core reveals that the awk is failing because input string too long, limit. can i get some help from the experts to find... (8 Replies)
Discussion started by: knijjar
8 Replies
LEARN ABOUT DEBIAN
anyevent::xmpp::error::muc
AnyEvent::XMPP::Error::MUC(3pm) User Contributed Perl Documentation AnyEvent::XMPP::Error::MUC(3pm)
NAME
AnyEvent::XMPP::Error::MUC - MUC error
Subclass of AnyEvent::XMPP::Error
METHODS
type
This method returns either:
join_timeout
If the joining of the room took too long.
no_config_form
If the room we requested the configuration from didn't provide a data form.
subject_change_forbidden
If changing the subject of a room is not allowed.
message_error
If this is an unidentified message error.
If we got a presence error the method "presence_error" returns a AnyEvent::XMPP::Error::Presence object with further details. However,
this class tries to provide a mapping for you (the developer) to ease the load of figuring out which error means what. To make
identification of the errors with XEP-0045 more clear I included the error codes and condition names.
Here are the more descriptive types:
password_required
Entering a room Inform user that a password is required.
(Condition: not-authorized, Code: 401)
banned
Entering a room Inform user that he or she is banned from the room
(Condition: forbidden, Code: 403)
room_locked
Entering a room Inform user that the room does not exist and someone is currently creating it.
(Condition: item-not-found, Code: 404)
room_not_creatable
Entering a room Inform user that room creation is restricted
(Condition: not-allowed, Code: 405)
use_reserved_nick
Entering a room Inform user that the reserved roomnick must be used
(Condition: not-acceptable, Code: 406)
not_on_memberlist
Entering a room Inform user that he or she is not on the member list
(Condition: registration-required, Code: 407)
nickname_in_use
Entering a room Inform user that his or her desired room nickname is in use or registered by another user
(Condition: conflict, Code: 409)
room_full
Entering a room Inform user that the maximum number of users has been reached
(Condition: service-unavailable, Code: 503)
The condition and code are also available through the AnyEvent::XMPP::Error::Presence object returned by "presence_error", see below.
text
This method returns a human readable text if one is available.
presence_error
Returns a AnyEvent::XMPP::Error::Presence object if this error origins to such an error and not some internal error.
message_error
Returns a AnyEvent::XMPP::Error::Message object if this error origins to such an error and not some internal error.
AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
COPYRIGHT & LICENSE
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 AnyEvent::XMPP::Error::MUC(3pm)