Thanks Jim. I was thinking it might be as difficult as you say. When I've posted the complete situation over the past few days, I get responses that suggest I should not want to know this or do this. As an enthusiast I like to explore and learn, so thought I would try to ask a much more direct technical question to avoid being scolded. :-)
Attached are several of my posts from a more thorough thread I started last week that might answer any questions you have. Sorry it is so long.
I've had these similar data errors on a MacBook 2006 10.6.8, a MacBook 2010 10.8.x, and a two week old MacBook Pro 10.10.5. The older ones have been cleaned up with install of OS. Because of our hack history here I was trying to learn more about this.
The purpose of those comands are to find the newest file in a directory acvrdind to system date, and it has to be recursively found in each directory.
The problem is that i want to list in a long format every found file, but the commands i use produce unexpected results ,so the output lists in a... (5 Replies)
Hi ,
I have a typical situation. I have 4 files and with different headers (number of headers is varible ).
I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only).
For example -
File 1
H1|H2|H3|H4
11|12|13|14
21|22|23|23... (1 Reply)
I have to find the specific formatted file is present in the received list in the directory, for which I have written:
file_list=`ls -lrt /tmp/vinay/act/files |grep "$cdate"| awk '{print $9}'`
while read fileStr
do
find $file_list $fileStr > /dev/null
status=`echo $?`
if ; then
... (3 Replies)
Hi All,
We are copying all the files into ARCHIVE directory after we process them. We are doing this process from last 2 years, now we have a lot of files in ARCHIVE directory.
Now I need to find when the first file is copied into this directory?
If I Issue,
ls -l /ARCHIVE/*.* | tail -1... (3 Replies)
I have an issue with a korn shell script that I am writing. The script parses through a configuration file which lists a heap of path/directories for some files which need to be FTP'd. Now the script needs to check whether there are any files which have not been processed and are X minutes old.
... (2 Replies)
Hi ,
I have a .txt file in which I have multiple headers, the header record starts with $ symbol...like the first column name is $Account.
I have to keep the header in the first line and delete all the remaining headers which are in the file.
I tried using sort adc.txt | uniq -u , but my... (7 Replies)
Hi I need to merge 4 files. The issue i am facing is all the files have headers and i do not want them in the final output file. Can anybody suggest how to do it? (5 Replies)
Hi All,
In the file names we have dates.
Based on the file format given by the user,
if any file is not existed for a particular date with in a given interval we should consider that file is missing.
I have the below files in the directory /bin/daily/voda_files.
... (9 Replies)
Discussion started by: nalu
9 Replies
LEARN ABOUT DEBIAN
twiggy
Twiggy(3pm) User Contributed Perl Documentation Twiggy(3pm)NAME
Twiggy - AnyEvent HTTP server for PSGI (like Thin)
SYNOPSIS
twiggy --listen :8080
See "twiggy -h" for more details.
use Twiggy::Server;
my $server = Twiggy::Server->new(
host => $host,
port => $port,
);
$server->register_service($app);
AE::cv->recv;
DESCRIPTION
Twiggy is a lightweight and fast HTTP server with unique features such as:
PSGI
Can run any PSGI applications. Fully supports psgi.nonblocking and psgi.streaming interfaces.
AnyEvent
This server uses AnyEvent and runs in a non-blocking event loop, so it's best to run event-driven web applications that runs I/O bound
jobs or delayed responses such as long-poll, WebSocket or streaming content (server push).
This software used to be called Plack::Server::AnyEvent but was renamed to Twiggy. See "NAMING" for details.
Fast header parser
Uses XS/C based HTTP header parser for the best performance. (optional, install the HTTP::Parser::XS module to enable it; see also
Plack::HTTPParser for more information).
Lightweight and Fast
The memory required to run twiggy is 6MB and it can serve more than 4500 req/s with a single process on Perl 5.10 with MacBook Pro 13"
late 2009.
Superdaemon aware
Supports Server::Starter for hot deploy and graceful restarts.
To use it, instead of the usual:
plackup --server Twiggy --port 8111 app.psgi
install Server::Starter and use:
start_server --port 8111 plackup --server Twiggy app.psgi
ENVIRONMENT
The following environment variables are supported.
TWIGGY_DEBUG
Set to true to enable debug messages from Twiggy.
NAMING
Twiggy?
Because it is like Thin <http://code.macournoyer.com/thin/>, Ruby's Rack web server using EventMachine. You know, Twiggy is thin :)
Why the cute name instead of more descriptive namespace? Are you on drugs?
I'm sick of naming Perl software like HTTP::Server::PSGI::How::Its::Written::With::What::Module and people call it HSPHIWWWM on IRC. It's
hard to say on speeches and newbies would ask questions what they stand for every day. That's crazy.
This module actually includes the longer alias and an empty subclass AnyEvent::Server::PSGI for those who like to type more ::'s. It would
actually help you find this software by searching for PSGI Server AnyEvent on CPAN, which i believe is a good thing.
Yes, maybe I'm on drugs. We'll see.
LICENSE
This module is licensed under the same terms as Perl itself.
AUTHOR
Tatsuhiko Miyagawa
Tokuhiro Matsuno
Yuval Kogman
Hideki Yamamura
Daisuke Maki
SEE ALSO
Plack AnyEvent Tatsumaki
perl v5.14.2 2012-02-21 Twiggy(3pm)