I'm a new support employee and 1 of my sites is having a problem printing. There is a UnixWare 2.0 server and a HPLJ printer connect by TCP/IP. When a user prints something it usually prints but the job stays on the que for a while after it has been printed. When I check 'lpstat -t' the job is... (2 Replies)
Hello Everybody:
I have a csv file that i would want to be converted to a table (csv also) filtered, transposed and matched with the header (quite confusing, sorry). So the output can used on a spreadsheet and plot on a grap. I'm using CSH on unix.
To further explain, here is an example input... (2 Replies)
Following is input:
<P
align="justify"
><FONT size="+1" color="#221E1F">the tiny bundles of hairs that protrude from them. Waves in the fluid of the inner ear stimulate the hair cells. Like the rods and cones in the eye, the hair cells convert this physical stimulation into neural im<FONT... (1 Reply)
Hi guys
Im new to forum so please dont be hard to me if I make any mistakes :)
I want to the following task:
1. I have a file lets say file1, which contains job names with numbers which have failed to start and ....
I can sort that file into another to get only the Job numbers with... (3 Replies)
Hi
I want to write a shell script which can find the process id's of all the process and kill them eg:
ps ax | grep rv_
3015 ? S 0:00 /home/vivek/Desktop/rv_server
3020 ? S 0:00 /home/vivek/Desktop/rv_gps
3022 ? S 0:00 /home/vivek/Desktop/rv_show
... (7 Replies)
Hi All,
I have a text file which looks like this:
computer programming
systems engineering
I want to get rid of these square brackets and also the text that is inside these brackets. So that my final text file looks like this:
computer programming
systems engineering
I am using... (3 Replies)
Hi all. i need a small help.
i have written an exit code, which will check whether mo.sh is successful or not. if the status is >0 it will exit the shell.
1>Do you guys think it is a correct way to write?
2>what if i change the double bracket to single. how will it change the o/p.
... (1 Reply)
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
I have the file sed1.txt and I need to strip the brackets (]) and content inside them only when
I have two or three letters followed by a colon.
for example,it may be any letter, not just abc
]
]
#-- cat sed1.txt
1 ] FISICA
2 ]PORTUGUES
3 ] ]MATEMATICA
4 ]]INGLES ]
5 ]QUIMICA
6... (2 Replies)
Hi everybody!
i have a lot of files where i filter out data.
#!/bin/bash
f=sample_*.Spe
for i in $f `eval echo ls sample_*.Spe`
do
if test -f "$i"
then
awk 'FNR==8 ||FNR==10 || (FNR>=13 && FNR<=268) {print $1}' $i > test$i.txt
paste test$i.txt test_f.txt > test_f.txt
... (5 Replies)
Discussion started by: IMPe
5 Replies
LEARN ABOUT DEBIAN
mojo::content::single
Mojo::Content::Single(3pm) User Contributed Perl Documentation Mojo::Content::Single(3pm)NAME
Mojo::Content::Single - HTTP 1.1 content container
SYNOPSIS
use Mojo::Content::Single;
my $single = Mojo::Content::Single->new;
$single->parse("Content-Length: 12
Hello World!");
DESCRIPTION
Mojo::Content::Single is a container for HTTP 1.1 content as described in RFC 2616.
EVENTS
Mojo::Content::Single inherits all events from Mojo::Content and can emit the following new ones.
"upgrade"
$single->on(upgrade => sub {
my ($single, $multi) = @_;
...
});
Emitted when content gets upgraded to a Mojo::Content::MultiPart object.
$single->on(upgrade => sub {
my ($single, $multi) = @_;
return unless $multi->headers->content_type =~ /multipart/([^;]+)/i;
say "Multipart: $1";
});
ATTRIBUTES
Mojo::Content::Single inherits all attributes from Mojo::Content and implements the following new ones.
"asset"
my $asset = $single->asset;
$single = $single->asset(Mojo::Asset::Memory->new);
The actual content, defaults to a Mojo::Asset::Memory object with "auto_upgrade" enabled.
"auto_upgrade"
my $upgrade = $single->auto_upgrade;
$single = $single->auto_upgrade(0);
Try to detect multipart content and automatically upgrade to a Mojo::Content::MultiPart object, defaults to 1.
METHODS
Mojo::Content::Single inherits all methods from Mojo::Content and implements the following new ones.
"new"
my $single = Mojo::Content::Single->new;
Construct a new Mojo::Content::Single object and subscribe to "read" event with default content parser.
"body_contains"
my $success = $single->body_contains('1234567');
Check if content contains a specific string.
"body_size"
my $size = $single->body_size;
Content size in bytes.
"clone"
my $clone = $single->clone;
Clone content if possible, otherwise return "undef".
"get_body_chunk"
my $chunk = $single->get_body_chunk(0);
Get a chunk of content starting from a specfic position.
"parse"
$single = $single->parse("Content-Length: 12
Hello World!");
my $multi = $single->parse("Content-Type: multipart/form-data
");
Parse content chunk and upgrade to Mojo::Content::MultiPart object if possible.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Content::Single(3pm)