8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am trying to get a dollar sign variable to be expanded in single quotes. Not sure what I am doing wrong. I have tried every way I can think of.
for i in `cat file1`
do
for j in `cat file2`
do
ssh $i 'systemctl is-enabled "${j}" ';
done
done... (4 Replies)
Discussion started by: cokedude
4 Replies
2. UNIX for Advanced & Expert Users
I'm looking at a config file with dollar signs. What do the dollar signs mean in front of a directory?
dir = ./demoCA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
new_certs_dir = $dir/newcerts # default... (1 Reply)
Discussion started by: cokedude
1 Replies
3. Cybersecurity
Could someone please explain to me the difference between Shibboleth and Single Sign On? How are they related?
Thank you! (1 Reply)
Discussion started by: onlinelearner02
1 Replies
4. Linux
Please help me, wasted hrs:wall:, to find this soulution:-
I need a command that will work on file (xml) and replace multiple occurrence (more than 2 times)
Examples
1. '==='
2. '===='
3. '======='
should be replaced by just '=='
Note :- single character should be replaced. (=... (13 Replies)
Discussion started by: RedRocks!!
13 Replies
5. Solaris
We are looking for implementing solaris single sign on with AD in our environment which as few hundred Solaris hosts and couple of hundred solaris zones ..IS there any third party software for the same or we can do it by just making the solaris servers as AD clients ? Any help is appreciated. (1 Reply)
Discussion started by: fugitive
1 Replies
6. UNIX for Dummies Questions & Answers
Does anyone have this handy
Thanks (0 Replies)
Discussion started by: 77yrold
0 Replies
7. UNIX for Dummies Questions & Answers
in a xen environment , i see a lot op dropped packets via netstat -i
Is this a sign of network problems, or is it normal to see this kind of numbers? i'm not sure how to interprete the data. is this normal, bad, critical. What are your stats on this?
I guess i have a xen issue of some sort,... (1 Reply)
Discussion started by: progressdll
1 Replies
8. Shell Programming and Scripting
I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem.
I need... (1 Reply)
Discussion started by: Glider
1 Replies
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)