From: Etienne Grossmann <etienne@anonimo.isr.ist.utl.pt>
To: linux-sound@vger.kernel.org
Subject: opening /dev/sequencer, in perl.
Date: Mon, 07 Dec 1998 20:02:29 +0000 [thread overview]
Message-ID: <marc-linux-sound-91309805316908@msgid-missing> (raw)
Hello, I have been trying to open /dev/sequencer for writing : In C,
I do :
fd = open("/dev/sequencer", O_WRONLY))
and the filehandle can be manipulated (carefully) to produce sound. In
perl, I have tried :
try1:
open(FD,">/dev/sequencer") or die "NOPE\n";
print FD "";
try2:
use IO::File;
$fh = new IO::File "/dev/sequencer", O_WRONLY;
print "NOPE\n" unless defined($fh);
try3:
use Fcntl;
sysopen(FD,"/dev/sequencer",O_WRONLY) ;
print FD "" ;
but none of them work.
Would anyone have an explanation to my troubles?
Etienne
ps : I use perl 5.005, Linux kernel is 2.0.34 (Debian 2.0). Sound card
is soundblaster compatible.
reply other threads:[~1998-12-07 20:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-sound-91309805316908@msgid-missing \
--to=etienne@anonimo.isr.ist.utl.pt \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox