06-17-2013
Yeah, that did not work. Routes still persist.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to add a route for an interface on my unix server. The interface is qfe0. How do I type out the route add command.
The Normal way is
route add 1.1.1.0 1.1.1.1
When I want it to bind to a certain interface how to I enter the command. (1 Reply)
Discussion started by: Hordak
1 Replies
2. IP Networking
hi everybody ,
i have a solaris 5.6 box and i want to trace the route on an ip i treid traceroute but soalris 5.6 does not support it ...
is there a command that can be used equivelent to traceroute ?
thanks for your help (2 Replies)
Discussion started by: ppass
2 Replies
3. UNIX for Dummies Questions & Answers
I have a route that disappears when the server is rebooted.
to get the route back I do:
route add 65.x.x.x 10.0.x.x
I go to cd /etc/inet
vi config
and the route is in place
Anybody might know what is happening? (4 Replies)
Discussion started by: jrmontg
4 Replies
4. Solaris
Hi Guru's
Can any want here could explain to me the different between soft reboot and hard reboot .
Best Regards
Seelan (3 Replies)
Discussion started by: seelan3
3 Replies
5. IP Networking
Hi,
HP-UX 11iV2, but it's probably universal (tcp/ip)
I have a production and a test server. The test server gets the application updated nightly from the production server software. The application accesses a set of process servers on a separate subnet (192.163.22.30,31,32), but reachable... (1 Reply)
Discussion started by: monroedoug
1 Replies
6. Solaris
Hello,
I just added a route in solaris 10 system for host to use gateway.
I see that new route in the netstat command
Will this stay after reboot or I have to make any provision for this? Please let me know
Thanks (11 Replies)
Discussion started by: upengan78
11 Replies
7. AIX
Hello,
On Aix 5.2, we changed the parameters tcp_keepinit, tcp_keepintvl and tcp_keepidle with the no command.
tunrestore -R is present in inittab
in the directory /etc/tunables we can clearly see the inclusion of parameters during reboot, including the file lastboot.log
... (0 Replies)
Discussion started by: dantares
0 Replies
8. UNIX for Dummies Questions & Answers
I'm wondering if it is possible to use Exceed as a remote desktop and have my session persist after I close it down (ala VNC Viewer). I find it annoying to always have to reopen my windows and files when I shut it down.
Thanks! (0 Replies)
Discussion started by: dvd7e
0 Replies
9. UNIX for Dummies Questions & Answers
I recently installed LaTeX on my linux machine and I attempted to add a directory to the PATH as the instructions say to do. They tell me to give the following command:
PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH; export PATH After I do this I can use commands such as "pdflatex" anywhere,... (5 Replies)
Discussion started by: TR5
5 Replies
10. Solaris
I try to delete the route on one of the server
But I am not able to do it
its show the error
# route delete 10.1.88.0 10.37.201.33
delete host 10.1.88.0: gateway 10.37.201.33: not in table
If I add the route also its shows the error message
# route add -net 10.1.88.0 10.37.201.33
add net... (5 Replies)
Discussion started by: bapu1981
5 Replies
LEARN ABOUT DEBIAN
rest::application::routes
REST::Application::Routes(3pm) User Contributed Perl Documentation REST::Application::Routes(3pm)
NAME
REST::Application::Routes - An implementation of Ruby on Rails type routes.
SYNOPSIS
package MyApp;
use base 'REST::Application::Routes';
my $obj = REST::Application::Routes->new();
$obj->loadResource(
'/data/workspaces/:ws/pages/:page', => &do_thing,
# ... other routes here ...
);
sub do_thing {
my %vars = @_;
print $vars{ws} . " " . $vars{page} . "
";
}
# Now, in some other place. Maybe a CGI file or an Apache handler, do:
use MyApp;
MyApp->new->run("/data/workspaces/cows/pages/good"); # prints "cows good"
DESCRIPTION
Ruby on Rails has this concept of routes. Routes are URI path info templates which are tied to specific code (i.e. Controllers and Actions
in Rails). That is routes consist of key value pairs, called the route map, where the key is the path info template and the value is a
code reference.
A template is of the form: "/foo/:variable/bar" where variables are always prefaced with a colon. When a given path is passed to "run()"
the code reference which the template maps to will be passed a hash where the keys are the variable names (sans colon) and the values are
what was specified in place of the variables.
The route map is ordered, so the most specific matching template is used and so you should order your templates from least generic to most
generic.
See REST::Application for details. The only difference between this module and that one is that this one uses URI templates as keys in the
"resourceHooks" rather than regexes.
METHODS
These are methods which REST::Application::Routes has but its superclass does not.
getTemplateVars()
Returns a hash whose keys are the ":symbols" from the URI template and whose values are what where matched to be there. It is assumed that
this method is called either from within or after "loadResource()" is called. Otherwise you're likely to get an empty hash back.
getLastMatchTemplate()
This is an alias for "getLastMatchPattern()", since this class is about templates rather than regexes.
AUTHORS
Matthew O'Connor <matthew@canonical.org>
LICENSE
This program is free software. It is subject to the same license as Perl itself.
SEE ALSO
REST::Application, <http://manuals.rubyonrails.com/read/chapter/65>
perl v5.10.0 2007-08-09 REST::Application::Routes(3pm)