9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a really old distro (FC7) that I am trying to make compatible with some new hardware (ie. new RAID drivers)...
I put the RAID driver into the ISO so that the installer can detect the RAID set... but post-install (aka: first boot) it appears that the Anaconda-generated initrd does not have... (0 Replies)
Discussion started by: jjinno
In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
3. UNIX for Dummies Questions & Answers
Help, suspect hacked via serial or electric! any ideas on error "Pid:1, comm:swapper Tainted:G W 2.6.35-22 generic #33 -unbutu device = "(null)" or unknown-blocklist(8.1) please append a correct "root"boot option Available partitions 0b00 1048575 sr0 driver:sr 0800 488386584 sda driver:sd. Thanks... (3 Replies)
Discussion started by: kryclear
I compiled TUN 1.1 driver on my Solaris 10 64bit, and everything was working fine, all the commands for installation were successfull (add_drv, devfsadm -i tun ... etc.)
and the driver was working fine as I got OpenVPN server up and running with successful clients attached. My only problem... (2 Replies)
Discussion started by: TomSu
I use the uptime command,but
it only show how long system has been up
up 18 days
but I want the this format
machine boot time YYYY-MM-DD hh:mm:ss
does any command can get that or how to i use program to do this (6 Replies)
Discussion started by: alert0919
When I get start program at boot
I read which run level
only read directory which directory name has UpperCase 'S'
is not enough
someone says that I need to reference another file
which file I need to reference
1)/etc/rc.config.d/all file which parameter... (4 Replies)
Discussion started by: alert0919
How do I get the number of tics or seconds since the last boot?
How do I convert tics to seconds?
Siegfried (3 Replies)
Discussion started by: siegfried
8. UNIX for Advanced & Expert Users
I have a program that check the IP address and automatic update it to the DNS server. I would like to run this program when the computer bootup after pppd get a connection. How do I add it to the init file. Does any one have any information of how to do it.
I run a Linux Mandrake as a... (1 Reply)
Discussion started by: vtran4270
9. UNIX for Dummies Questions & Answers
I'm looking for advice on where is the best place on Solaris to put a script that will setup system vairables prior to any users loging in. I've tried /etc/rc3.d without much success as the variables do not appear in the output from an env command.
I want the system to have these... (7 Replies)
Discussion started by: ianf
File::Type::WebImages(3pm) User Contributed Perl Documentation File::Type::WebImages(3pm)
File::Type::WebImages - determine web image file types using magic
use File::Type::WebImages 'mime_type';
my $type_1 = mime_type($file);
my $type_2 = mime_type($data);
"mime_type()" can use either a filename, or file contents, to determine the type of a file. The process involves looking the data at the
beginning of the file, sometimes called "magic numbers".
THE BIG TRADE OFF
For minimum memory consumption, only the following common web image file types are supported:
BMP, GIF, JPEG and PNG. ( image/bmp, image/gif, image/jpeg and image/png ).
Unlike with File::Type and File::MMagic, 'undef', not "application/octet-stream" will be returned for unknown formats.
Unlike File::Type, we return "image/png" for PNGs, not "image/x-png";
If you want more mime types detected use File::Type or some other module.
It would be even better to have a pluggable system that would allow you to plug-in different sets of MIME-types you care about.
File::Type. Similar, but supports over 100 file types.
File::Type::WebImages is built from a mime-magic file from cleancode.org. The original can be found at
Paul Mison <firstname.lastname@example.org> - wrote original File::Type Mark Stosberg <email@example.com> - hacked up this.
Copyright 2003-2004 Fotango Ltd.
Licensed under the same terms as Perl itself.
perl v5.10.1 2011-04-23 File::Type::WebImages(3pm)