7 More Discussions You Might Find Interesting
1. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
2. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
3. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
4. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
7. Solaris
I tried rebooting my Sun server just a few minutes ago and I got the following at boot:
--
Sun Fire 280R (UltraSPARC-III+) , No Keyboard
Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.5, 1024 MB memory installed, Serial #xxxxxxxxx
Ethernet address... (6 Replies)
Discussion started by: deckard
6 Replies
File::MimeInfo::Magic(3pm) User Contributed Perl Documentation File::MimeInfo::Magic(3pm)
NAME
File::MimeInfo::Magic - Determine file type with magic
SYNOPSIS
use File::MimeInfo::Magic;
my $mime_type = mimetype($file);
DESCRIPTION
This module inherits from File::MimeInfo, it is transparent to its functions but adds support for the freedesktop magic file.
Magic data is hashed when you need it for the first time. If you want to force hashing earlier use the "rehash()" function.
EXPORT
The method "mimetype" is exported by default. The methods "magic", "inodetype", "globs" and "describe" can be exported on demand.
METHODS
See also File::MimeInfo for methods that are inherited.
"mimetype($file)"
Returns a mime-type string for $file, returns undef on failure.
This method bundles "inodetype()", "globs()" and "magic()".
Magic rules with an priority of 80 and higher are checked before "globs()" is called, all other magic rules afterwards.
If this doesn't work the file is read and the mime-type defaults to 'text/plain' or to 'application/octet-stream' when the first ten
chars of the file match ascii control chars (white spaces excluded). If the file doesn't exist or isn't readable "undef" is returned.
If $file is an object reference only "magic" and the default method are used. See below for details.
"magic($file)"
Returns a mime-type string for $file based on the magic rules, returns undef on failure.
$file can be an object reference, in that case it is supposed to have a "seek()" and a "read()" method. This allows you for example to
determine the mimetype of data in memory by using IO::Scalar.
Be aware that when using a filehandle or an "IO::" object you need to set the ":utf8" binmode yourself if apropriate.
"rehash()"
Rehash the data files. Glob and magic information is preparsed when this method is called.
If you want to by-pass the XDG basedir system you can specify your database directories by setting @File::MimeInfo::DIRS. But normally
it is better to change the XDG basedir environment variables.
"default"
"describe"
"extensions"
"globs"
"inodetype"
These routines are imported from File::MimeInfo.
SEE ALSO
File::MimeInfo
LIMITATIONS
Only word sizes of 1, 2 or 4 are supported. Any other word size is ignored and will cause a warning.
BUGS
Please mail the author when you encounter any bugs.
AUTHOR
Jaap Karssenberg <pardus@cpan.org>
Copyright (c) 2003, 2012 Jaap G Karssenberg. All rights reserved. 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-01-05 File::MimeInfo::Magic(3pm)