I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
I often find myself grepping source code for a variable name and many times the name would be present in comment lines that I 'd prefer not to see. Do you guys know any tricks to filter out comments?
Example:
snippet of the source code
/***
* type comment 1
***/
void ... (7 Replies)
Hi,
I have a log file which has number of lines from that i have to grep a string like this
03:22:19,287
while greping this string i have to grep next lines to the maximum of finding the word (MORE...)
the stack is like this
*************
22/11/2011 03:22:19,287 232290646 ERROR... (2 Replies)
Hi,
Below is the command to grep for a string under
grep -r "redeem" /home/tom
Need to make it case insensitive and exclude logs & tmp folders under /home/tom directory in my Search.
Need this in Linux. (1 Reply)
Hi,
I must be overlooking something, but I don't understand why this doesn't work. I'm trying to grep on a date, excluding all the lines starting with a dash:
testfile:
#2013-12-31
2013-12-31code:
grep '^2013-12-31' testfileI'm expecting to see just the second line '2013-12-31' but I don't... (3 Replies)
I have been asked to see if we can restrict SFTP access to authorised users only. There will be business users who will log on with SSH, but they are locked into a menu. They will have write access to the production data to do their job, but we don't want them to have access to read/write the... (8 Replies)
Hello.
I consider myself a journeyman Unix user. I can handle most day to day tasks and have created some fairly complicated command queries, but this problem has defeated me so far. Any help would be greatly appreciated!
We keep an archive in the file system with a directory structure in... (5 Replies)
HI all,
I have data in a file that looks like this:
1 HOW _ NNP NNP _ 3 nn _ _
2 DRUGS _ NNP NNP _ 3 nn _ _
3 ACT _ NNP NNP _ 0 null _ _
4 : _ ... (3 Replies)
hi
I have a few folders and a few files , for example
Directory A B C D E
Files 1 2 3 4 5
I want B directory and "2" File that does not sync
But other directories and file sync
What is the solution ?
Is there a way to sync time is under one minute?
os centos 6.8
thanks... (5 Replies)
Hi,
I'm working on a shell script that reports service status on a database server.
There are some services that are in disabled status that the script should ignore and only check the services that are in Enabled status.
I output the service configuration to a file and use that information to... (5 Replies)
Discussion started by: senthil3d
5 Replies
LEARN ABOUT DEBIAN
mojolicious::plugin::mount
Mojolicious::Plugin::Mount(3pm) User Contributed Perl Documentation Mojolicious::Plugin::Mount(3pm)NAME
Mojolicious::Plugin::Mount - Application mount plugin
SYNOPSIS
# Mojolicious
my $route = $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'});
# Mojolicious::Lite
my $route = plugin Mount => {'/prefix' => '/home/sri/myapp.pl'};
# Adjust the generated route
my $example = plugin Mount => {'/example' => '/home/sri/example.pl'};
$example->to(message => 'It works great!');
# Mount application with host
plugin Mount => {'mojolicio.us' => '/home/sri/myapp.pl'};
# Host and path
plugin Mount => {'mojolicio.us/myapp' => '/home/sri/myapp.pl'};
# Or even hosts with wildcard subdomains
plugin Mount => {'*.mojolicio.us/myapp' => '/home/sri/myapp.pl'};
DESCRIPTION
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
METHODS
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
my $route = $plugin->register($app, $conf);
Mount Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::Mount(3pm)