how can I find the driver list in perl

O

Over G

what should I write in perl in order t get the driver list in my
computer?

(mean hard disk.)

thanks.
O
 
D

Dr.Ruud

Over G schreef:
[W]hat should I write in [P]erl in order t[o] get
the driver list in my computer?

I assume that you share a car. You don't need Perl if you remember part
of the name, or of the contents, of the file with the driver list, just
use (example for Windows computer follows) [Start], Search.

If you prefer to do it in Perl, then start by reading the Posting
Guidelines that are posted here twice a week.
 
O

Over G

that was a very rude answer. instead of answering my question stright
away you are using low sarcasm of the worst kind.

pathetic, don't bother to answer.

Are you sure that your name Start with DR.
which university gave you this ?!

(probably gaza strip university.)



Dr.Ruud said:
Over G schreef:
[W]hat should I write in [P]erl in order t[o] get
the driver list in my computer?

I assume that you share a car. You don't need Perl if you remember part
of the name, or of the contents, of the file with the driver list, just
use (example for Windows computer follows) [Start], Search.

If you prefer to do it in Perl, then start by reading the Posting
Guidelines that are posted here twice a week.
 
A

anno4000

First, don't top-post.
that was a very rude answer. instead of answering my question stright
away you are using low sarcasm of the worst kind.

You thoughtlessly posted a question that has nothing to do with Perl
on a Perl newsgroup. On Usenet this is considered rude. It is even
more rude to use a language that saves you a handful of keystrokes
but leaves the reader guessing what you mean. You had a rude reply
coming. So what?
pathetic, don't bother to answer.

Are you sure that your name Start with DR.
which university gave you this ?!

(probably gaza strip university.)

Ah, ethnic slurs too. That certainly qualifies you to talk about rude.

Anno
 
D

David Squire

Over G wrote:

[top-posting corrected. Please don't do that]
Dr.Ruud said:
Over G schreef:
[W]hat should I write in [P]erl in order t[o] get
the driver list in my computer?
I assume that you share a car. You don't need Perl if you remember part
of the name, or of the contents, of the file with the driver list, just
use (example for Windows computer follows) [Start], Search.

If you prefer to do it in Perl, then start by reading the Posting
Guidelines that are posted here twice a week.

[quoted .sig snipped. Please don't do that]
that was a very rude answer. instead of answering my question stright
away you are using low sarcasm of the worst kind.

pathetic, don't bother to answer.

You will be very unlikely to get help here unless you follow Dr. Ruud's
advice and read and follow the Posting Guidelines for this group.
Are you sure that your name Start with DR.
which university gave you this ?!

(probably gaza strip university.)

And you call others rude!

*plonk*



DS
 
T

Tad McClellan

Over G said:
that was a very rude answer.


Rude questions get rude answers.

You find that surprising?

instead of answering my question stright
away


You asked a question that has nothing to do with Perl programming.

This is the Perl programming newsgroup you know...

pathetic, don't bother to answer.


I think you can count on a whole lot of people not answering
your questions from now on!

Are you sure that your name Start with DR.


And what is *your* name?

which university gave you this ?!

(probably gaza strip university.)


Ad hominem attacks such as that indicate a lack of intellect.

So long!
 
O

Over G

Tad said:
Rude questions get rude answers.

You find that surprising?




You asked a question that has nothing to do with Perl programming.

This is the Perl programming newsgroup you know...
I will rephrase :

What command should I use IN THE PERL LANGUAGE in order to get the
list of available HD in my computer.
thanks.
Ad hominem attacks such as that indicate a lack of intellect.

Lack of intellect is someone that can not understand simple question,
and prefer to attack with usless Sarcasm.
 
P

Paul Lalli

Over said:
what should I write in perl in order t get the driver list in my
computer?

(mean hard disk.)

Then why didn't you *say* hard disk to begin with? A synonym of "hard
disk" is "hard drive". "drivers" are something completely different.

The answer depends entirely on what system you're on. You didn't
include that, so I'll assume Microsoft Windows (because that's the
question to which I know the answer).

Go to http://search.cpan.org and search for "Win32::DriveInfo"

Paul Lalli
 
J

Jürgen Exner

Over said:
What command should I use IN THE PERL LANGUAGE in order to get the
list of available HD in my computer.

I am confused.
Are you looking for the drivers that are installed for your OS, like video
driver, audio driver, smart card driver, ... That seemed to be your original
question.
Or are you looking for a list of hard drives that are installed in your
computer? That's what you seem to be asking now.

jue
 
A

anno4000

Over G said:
I will rephrase :

What command should I use IN THE PERL LANGUAGE in order to get the
list of available HD in my computer.
thanks.

Simple. There is no such command in the Perl language.

Now piss off.

Anno
 
O

Over G

Simple. There is no such command in the Perl language.

Now piss off.



excuse me bu t who are you to tell me to piss off. ?

if you lack the knowledge that is required to answer such a question,
means that you don't know enough perl , please don't answer or save us
your low enligsh that belong to the red neck.
..

I
 
X

Xicheng Jia

Michele said:
I am confused.

Me too. I don't see how shouting parts of an unclear question make it
more clear.

Also I'm not aware of any Perl module for high digestibility. Maybe
there's room for it in the Acme namespace.

However, since I'm generous, I'll try to answer the OP's question:

perl -e 'system "fdisk -l"'
perl -e 'system "ls -1 /dev/[sh]d[a-z]"'

'fdisk' may need 'sudo' under Linux, and an alternative way can be

perl -lne 'm{^/dev/(\S+)} and print $1' /etc/fstab

in some Unixies, the checked file might be '/etc/mnttab' and in a
different format. so a way, if dont want to use CPAN modules, is to
find the right file containing the wanted information and parse it.

Xicheng
 
T

Tad McClellan

Over G said:
Tad McClellan wrote:
I will rephrase :

What command should I use IN THE PERL LANGUAGE in order to get the
list of available HD in my computer.
thanks.


Your question still has nothing to do with Perl programming!

You are looking for the answer in the wrong place (which will make
the answer much much harder to find).

Lack of intellect is someone that can not understand simple question,


I am quite sure that I understand your question better than you do!

Whether you are asking about device drivers or hard disks, the answer
depends on what operating system you are using.

You don't seem to realize that you have an operating system question.

and prefer to attack with usless Sarcasm.


Knowing what kind of question you have is not at all useless
(if you apply some of that claimed intellect).

First find out how to answer your question for your operating
system, _then_ turn your attention to how to automate it.

Knowing what needs to be done makes it a lot easer to write
a program that does that...
 
M

Matt Garrish

Over said:
excuse me bu t who are you to tell me to piss off. ?

He is what we here call a regular poster. You are not, and you're not
fooling anyone.
if you lack the knowledge that is required to answer such a question,
means that you don't know enough perl , please don't answer or save us
your low enligsh that belong to the red neck.

There are so many grammatical problems with that "paragraph" it's not
even funny. If your English is poor, which yours is, you should try
using a spellcheck program before posting. If you could write English
well, your paragraph above might make more sense as follows: (my
comments in brackets)

If you lack the knowledge to answer this question, it must mean you
don't know very much about the language [think what that says about
you!]. If that's the case, please don't answer, or at least spare the
world your red-neck English.

What you wrote, to someone who has spoken English his whole life, is
painful to read. What you wrote in your original post was equally
unclear. Although open to some interpretation, most people would guess
you were asking for what you were asking for: a list of drivers. A list
of drivers is not and never will be the same as a list of drives.
That's your problem for being unclear, not anyone else's.

Matt
 
O

Over G

Its amazing how much time you people spend to answer this long and
lengthy answers, this all discussion could have ended, if one would
have just answer it simple and clear, instead, people like you prefer
to go line by line on my paragraph, tell me how much I am wrong using
this line instead of that line,
Is it Perl group?
Or English literature group>?

thanks
O



Matt said:
Over said:
excuse me bu t who are you to tell me to piss off. ?

He is what we here call a regular poster. You are not, and you're not
fooling anyone.
if you lack the knowledge that is required to answer such a question,
means that you don't know enough perl , please don't answer or save us
your low enligsh that belong to the red neck.

There are so many grammatical problems with that "paragraph" it's not
even funny. If your English is poor, which yours is, you should try
using a spellcheck program before posting. If you could write English
well, your paragraph above might make more sense as follows: (my
comments in brackets)

If you lack the knowledge to answer this question, it must mean you
don't know very much about the language [think what that says about
you!]. If that's the case, please don't answer, or at least spare the
world your red-neck English.

What you wrote, to someone who has spoken English his whole life, is
painful to read. What you wrote in your original post was equally
unclear. Although open to some interpretation, most people would guess
you were asking for what you were asking for: a list of drivers. A list
of drivers is not and never will be the same as a list of drives.
That's your problem for being unclear, not anyone else's.

Matt
 
I

Ian Wilson

Over G top-posted:
Its amazing how much time you people spend to answer this long and
lengthy answers, this all discussion could have ended, if one would
have just answer it simple and clear, instead, people like you prefer
to go line by line on my paragraph, tell me how much I am wrong using
this line instead of that line,
http://www.catb.org/~esr/faqs/smart-questions.html#not_losing

Is it Perl group?
Or English literature group>?

http://world.std.com/~swmcd/steven/perl/linguistics.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top