11-23-2012
So, your expectations were thrown off by quoting and escqping? Well, that's layering for you. Good luck!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to run a remote application(GUI) in a client.i.e on running a script in the client machine i should get the GUI application which is running in the server by providing password through the script.Will expect or autoexpect command suit for this scenario?
could anyone help me by posting some... (0 Replies)
Discussion started by: arun_v
0 Replies
2. OS X (Apple)
Hi,
i'm planning a to automate my backup with a rsync user deamon in my launchd and let that run every 2 hours.
my server contains a lot of video data which can expand rapidly , up to 1TB, in an interval of 2 hours.
now i'm wondering what will happen when a rsync is running longer then the... (1 Reply)
Discussion started by: wessel
1 Replies
3. OS X (Apple)
Hi,
I'm trying to use launchd to detect whether certain ports are opened
and if they are then to take some appropriate action, e.g. close the
port or, worst case scenario, down the whole net connection. Apparently,
force closing a port is not possible without killing the offending binary so... (3 Replies)
Discussion started by: ASGR
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need an alert to be triggered if any filesystem(imagine there are n no of filesystems) reaches more than 90%, it should send an alert to the mailbox stating which filesystem is at what percentage. How can I achieve this in unix?
Many thanks. (8 Replies)
Discussion started by: venkatesht
8 Replies
5. Shell Programming and Scripting
Hi,
I am using following commands in my script to send a password to scp command. Everything is working fine except that I need a return code from the scp command. Do any one have an idea how to receive the exit code of scp command from expect.
/usr/bin/expect << EOF
spawn -noecho scp -pq... (0 Replies)
Discussion started by: pvamsikr
0 Replies
6. Shell Programming and Scripting
Hi All,
I need help in making my script run perfectly as expected.
This is a snippet from my script. I am trying to read the ";" from the below output using the expect command, but the command is not detecting it. Could you please help me correct the expect string?
Snippet:
----
---... (2 Replies)
Discussion started by: sonicj
2 Replies
7. UNIX for Dummies Questions & Answers
Ok, so I have been struggling with this for a few days and I think I need an explanation of a few things before I go any further. I'm not sure it's possible to do what I'm trying, so before I pull my hair out, here is what I'm doing:
I have written a program in LiveCode that sits on our... (2 Replies)
Discussion started by: nextyoyoma
2 Replies
8. Shell Programming and Scripting
Is there any way to trigger a sequence of commands in parallel and capture their output in variables? e.g. something on the following lines
x=`echo "X" &`
y=`echo "Y" &`
z=`echo "Z" &`
so that $x, $y, and $z evaluate to X, Y and Z res. (7 Replies)
Discussion started by: jawsnnn
7 Replies
9. Shell Programming and Scripting
I have a bash script on server that runs fine when run interactively and writes stderr output to a file.
However, when invoked through a 'expect' script run on Mac OS my laptop which does ssh to the server : generates the expected file, but file has no content. I suspect the stderr is getting... (1 Reply)
Discussion started by: sdudc
1 Replies
10. Shell Programming and Scripting
hi,
Currently, in my code, the errors are written in log file.
Additionally, i need to trigger the email of error captured. can we modify this script with email triggered along with existing command.
echo "ERROR: $SCRIPT: $*" >>$LOGFILE (1 Reply)
Discussion started by: gowthamsoft
1 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)