10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need to be able to move data around a disk that has mounted partitions. I am not touching the data on the mounted partition, the MBR or any other disk metadata, only the freespace and unmounted partitions. At the moment I am using libparted but it causes data corruption sometimes although there... (1 Reply)
Discussion started by: vstrom
1 Replies
2. UNIX for Dummies Questions & Answers
Hello...
I'm trying to setup a cronjob to record system data using glance at certain times of the day. My question is, how would one export the "Global System Calls" information to a file? Below is the command I have been using and it works to export CPU information.
glance -f ... (0 Replies)
Discussion started by: fumus
0 Replies
3. UNIX for Dummies Questions & Answers
Hello,
how would i be able to call ps in C programming?
thanks,
---------- Post updated at 01:39 AM ---------- Previous update was at 01:31 AM ----------
here's the complete system call, ps -o pid -p %d, getpit() (2 Replies)
Discussion started by: l flipboi l
2 Replies
4. UNIX for Advanced & Expert Users
If I explicity ignore a signal (for example, SIGALRM), and this signal is generated during a blocking system call (for example, a recvfrom() ), what happens to the system call?
Does it abort, or does it remain blocked until its end? (2 Replies)
Discussion started by: hurricane
2 Replies
5. Shell Programming and Scripting
hi, i'm a noob
i have a quuestion: is possible to call and run the bash script by c++ program?
if so, is it posible in grafic? specially Qt ?
thanks (8 Replies)
Discussion started by: 3.14.TR
8 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am new here .
I want to know about system call in detail.
As system calls are also function .How system identifies it.:) (2 Replies)
Discussion started by: vishwasrao
2 Replies
7. Programming
why user is not able to switch from user to kernel mode by writing the function whose code is identical to system call. (1 Reply)
Discussion started by: joshighanshyam
1 Replies
8. UNIX Desktop Questions & Answers
Hi,
I'm new to UNIX system calls. Can someone share your knowledge as to how exactly system calls should be executed?
Can they be typed like commands such as mkdir on the terminal itself? Also, are there any websites which will show me an example of the output to expect when a system call like... (1 Reply)
Discussion started by: ilavenil
1 Replies
9. Solaris
where can i find the differences in System calls between solaris and aix?
also is it possible to find a comprehensive list of them? (1 Reply)
Discussion started by: TECHRAMESH
1 Replies
10. UNIX for Dummies Questions & Answers
Which system calls are made for operations cp and mv (2 Replies)
Discussion started by: gaurava99
2 Replies
Device::Modem::UsRobotics(3pm) User Contributed Perl Documentation Device::Modem::UsRobotics(3pm)
NAME
Device::Modem::UsRobotics - USR modems extensions to control self-mode
SYNOPSIS
use Device::Modem::UsRobotics;
my $modem = new Device::Modem::UsRobotics( port => '/dev/ttyS1' );
$modem->connect( baudrate => 9600 );
my %info = $modem->messages_info();
print "There are $info{unreleased_voice_msg} unread voice messages on $info{stored_voice_msg} total
";
print "There are $info{unreleased_fax_msg} unread fax messages on $info{stored_fax_msg} total
";
# Get details about message n. X
my %msg = $modem->message_info(1);
index type information attributes status day hour minute
callerid page addresshigh addresslow checksum
print 'This is a ', ($msg{type} == 2 ? 'voice' : 'fax'), 'message', "
";
print 'It came from no. ', $msg{callerid}, "
";
# ...
# Now clear all messages
$modem->clear_memory();
WARNING
This module is not documented yet, and it is a rough work in progress. Until now, it correctly reads voice/fax messages information, but
when saving voice messages to disk, sometimes they are incorrectly decoded.
So, if you need a working program, check out the good old TkUsr by Ludovic Drolez, unless you want to help develop
Device::Modem::UsRobotics.
DOCS TO BE COMPLETED FROM NOW.....
Yes, I'm a bad boy :-)
DESCRIPTION
Bla Bla Bla...
METHODS
clear_memory()
Used to permanently clear the memory space of the modem. There are separate memory spaces, one for voice/fax messages and one for user set-
tings. Examples:
$modem->clear_memory('user'); # or $modem->clear_memory(1)
$modem->clear_memory('messages'); # or $modem->clear_memory(2)
To clear both, you can use:
$modem->clear_memory('all'); # or $modem->clear_memory(0);
Parameters:
$memtype
String or integer that selects the type of memory to be cleared, where 0 is for "all", 1 is for "user" memory, 2 is for "messages" mem-
ory.
SUPPORT
Please feel free to contact me at my e-mail address cosimo@cpan.org for any information, to resolve problems you can encounter with this
module or for any kind of commercial support you may need.
AUTHOR
Cosimo Streppone, cosimo@cpan.org
COPYRIGHT
(C) 2004-2005 Cosimo Streppone, cosimo@cpan.org
This library is free software; you can only redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Device::Modem, perl
perl v5.8.8 2005-04-30 Device::Modem::UsRobotics(3pm)