This the bash script (dpa_report.sh) that creates the REST -API report. I have taken out the actual username and password for the purposes of this post. If I run this script from the command line and pass it the hostname it works. For example
works. The hostname is set to $1 in the script.
But when dpa_report.sh is called from the php script I get the permission errors.
Hello everybody:
Im trying to run the following script on my sol9 machine:
line=''
((lineCount= 0))
export lineCount
more /tmp/MSISDNs | wc -l > /tmp/tmp
cat /tmp/tmp | read lineCount
export lineCount;
while (( lineCount > 0 ))
do
line= tail -$lineCount... (5 Replies)
I'm just not sure where to start looking into this. I want to be able to create switches for my script. Back in the day I'd make my scripts interactive...you know:
echo "what report do you want"
echo "A)boxes with errors"
echo "B)boxes with more than 5 errors"
echo "C)Service groups that have... (3 Replies)
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
How do I pass a bash variable to a javascript?
I've tried
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
counter=0
echo '<script>
window.parent.document.forms.counter.value = "$counter";
</script>'
I have an iframe script which I am trying to pass a... (3 Replies)
Hello,
How can I pass a variable into a 2nd file? I'm running a script:
ls -la $1 >pem99
cat pem99 | awk '{ print $3}' >us99
cat us99 | read us98
This then tells me the owner of a file.
my second file is:
echo OWNER GROUP OTHERS
echo
echo --data-- $us98
... (2 Replies)
Hello everyone,
I've been looking how to pass variables between bash and php-cli in 1 file. So far i got this:
#!/bin/bash
echo "This is bash"
php << EOF
<?php
echo "This is php\n";
?>
EOF
I would now like to be able to pass a variable declared in the bash to the php. I already... (0 Replies)
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing.
#!/bin/bash
echo "Enter Username"
read Username
awk -F: -v var=${Username} '/^var:/... (9 Replies)
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
... (2 Replies)
Hi,
I wanted to pass an argument to a bash script. So that the argument is used inside the awk command inside the bash script.
I know the noraml way of passing argument to a bash script as below :
sh myScript.sh abc
Inside the bash script i can use like this
myArg1=$1
wc $myArg
But... (8 Replies)
Hi All,
I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving
error :
Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50.
Can ... (6 Replies)
Discussion started by: NileshJ
6 Replies
LEARN ABOUT DEBIAN
rt::client::rest::exception
RT::Client::REST::Exception(3pm) User Contributed Perl Documentation RT::Client::REST::Exception(3pm)NAME
RT::Client::REST::Exception -- exceptions thrown by RT::Client::REST methods.
DESCRIPTION
These are exceptions that are thrown by various RT::Client::REST methods.
EXCEPTION HIERARCHY
RT::Client::REST::Exception
This exception is virtual -- it is never thrown. It is used to group all the exceptions in this category.
RT::Client::REST::OddNumberOfArgumentsException
This means that the method you called wants key-value pairs.
RT::Client::REST::InvaildObjectTypeException
Thrown when you specify an invalid type to "show()", "edit()", or "search()" methods.
RT::Client::REST::RequiredAttributeUnsetException
An operation failed because a required attribute was not set in the object.
RT::Client::REST::MalformedRTResponseException
RT server sent response that we cannot parse. This may very well mean a bug in this client, so if you get this exception, some debug
information mailed to the author would be appreciated.
RT::Client::REST::InvalidParameterValueException
Invalid value for comments, link types, object IDs, etc.
RT::Client::REST::CannotReadAttachmentException
Cannot read attachment (thrown from methods "comment()" and "correspond").
RT::Client::REST::RTException
This is a virtual exception and is never thrown. It is used to group exceptions thrown because RT server returns an error.
RT::Client::REST::ObjectNotFoundException
One or more of the specified objects was not found.
RT::Client::REST::AuthenticationFailureException
Incorrect username or password.
RT::Client::REST::UpdateException
This is a virtual exception. It is used to group exceptions thrown when RT server returns an error trying to update an object.
RT::Client::REST::CouldNotSetAttributeException
For one or another reason, attribute could not be updated with the new value.
RT::Client::REST::InvalidEmailAddressException
Invalid e-mail address specified.
RT::Client::REST::AlreadyCurrentValueException
The attribute you are trying to update already has this value. I do not know why RT insists on treating this as an exception, but
since it does so, so should the client. You can probably safely catch and throw away this exception in your code.
RT::Client::REST::ImmutableFieldException
Trying to update an immutable field (such as "last_updated", for example).
RT::Client::REST::IllegalValueException
Illegal value for attribute was specified.
RT::Client::REST::UnknownCustomFieldException
Unknown custom field was specified in the request.
RT::Client::REST::InvalidQueryException
Server could not parse the search query.
RT::Client::REST::UnauthorizedActionException
You are not authorized to perform this action.
RT::Client::REST::AlreadyTicketOwnerException
The owner you are trying to assign to a ticket is already the owner. This exception is usually thrown by methods "take()", "untake",
and "steal", if the operation is a noop.
RT::Client::REST::RequestTimedOutException
Request timed out.
RT::Client::REST::UnknownRTException
Some other RT exception that the driver cannot recognize.
METHODS
_get_exception_class
Figure out exception class based on content returned by RT.
_rt_content_to_exception
Translate error string returned by RT server into an exception object ready to be thrown.
SEE ALSO
Exception::Class, RT::Client::REST.
AUTHOR
Dmitri Tikhonov <dtikhonov@yahoo.com>
perl v5.14.2 2011-12-27 RT::Client::REST::Exception(3pm)