03-20-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies
2. Shell Programming and Scripting
Hi,
I have a flat file which is used by a program. I dont know the program name .This file is in used by that program which is still running ?
Is there any way to find out which program is accessing this file just by knowing the file name?
Can we check some thing in "ps" just by knowing only... (8 Replies)
Discussion started by: Manish Jha
8 Replies
3. Shell Programming and Scripting
As I'm a newbie to UNIX, very newbie in fact, could anyone humour me and tell me how I'd find just the file size in bytes for a specific file?
Or at least just the specific line from the ls -a for the file - call it file1
I know this sounds bad but I don't seem to be getting very far at this... (3 Replies)
Discussion started by: nortypig
3 Replies
4. UNIX for Dummies Questions & Answers
I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem.
so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am trying to find all files in a directory that have .dat and .int extensions and removing them.
rm -f `find ${MY_DIR} -type f -name '*.dat' -o -name '*.int'`
This works fine if $MY_DIR is a regular directory.
However when $MY_DIR is a symbolic link then this command fails.
How... (1 Reply)
Discussion started by: neeto
1 Replies
6. Linux
Hi,
I'm using the following command to find the multiple requierd file types and its working fine
find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f
Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies
7. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
8. Shell Programming and Scripting
Hi,
I want find multiple string in one file using find coomand.
And keeping it in one variable.grep is not working. (5 Replies)
Discussion started by: vivek1489
5 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
10. Shell Programming and Scripting
Hi Guys,
I have many files names of single task_id, now we have to find out only file of every task_id, my files is following :-
sms_task_id_01-12345.csv
sms_task_id_01-12345.csv
sms_task_id_01-13345.csv
sms_task_id_01-14345.csv
sms_task_id_01-14345.csv
sms_task_id_02-12345.csv... (12 Replies)
Discussion started by: aaditya321
12 Replies
LEARN ABOUT DEBIAN
catalyst::plugin::subrequest
Catalyst::Plugin::SubRequest(3pm) User Contributed Perl Documentation Catalyst::Plugin::SubRequest(3pm)
NAME
Catalyst::Plugin::SubRequest - Make subrequests to actions in Catalyst
SYNOPSIS
use Catalyst 'SubRequest';
my $res_body = $c->subreq('/test/foo/bar', { template => 'magic.tt' });
my $res_body = $c->subreq( {
path => '/test/foo/bar',
body => $body
}, {
template => 'magic.tt'
});
# Get the full response object
my $res = $c->subreq_res('/test/foo/bar', {
template => 'mailz.tt'
}, {
param1 => 23
});
$c->log->warn( $res->content_type );
DESCRIPTION
Make subrequests to actions in Catalyst. Uses the catalyst dispatcher, so it will work like an external url call. Methods are provided
both to get the body of the response and the full response (Catalyst::Response) object.
METHODS
subreq [path as string or hash ref], [stash as hash ref], [parameters as hash ref]
subrequest
sub_request
Takes a full path to a path you'd like to dispatch to.
If the path is passed as a hash ref then it can include body, action, match and path.
An optional second argument as hashref can contain data to put into the stash of the subrequest.
An optional third argument as hashref can contain data to pass as parameters to the subrequest.
Returns the body of the response.
subreq_res [path as string or hash ref], [stash as hash ref], [parameters as hash ref]
subrequest_response
sub_request_response
Like "sub_request()", but returns a full Catalyst::Response object.
SEE ALSO
Catalyst.
AUTHORS
Marcus Ramberg, "mramberg@cpan.org"
Tomas Doran (t0m) "bobtfish@bobtfish.net"
MAINTAINERS
Eden Cardim (edenc) "eden@insoli.de"
THANK YOU
SRI, for writing the awesome Catalyst framework
MIYAGAWA, for writing the awesome Plack toolkit
COPYRIGHT
Copyright (c) 2005 - 2011 the Catalyst::Plugin::SubRequest "AUTHORS" as listed above.
LICENSE
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-06-20 Catalyst::Plugin::SubRequest(3pm)