9 More Discussions You Might Find Interesting
1. Linux
A few days ago, I barely knew what Linux was. But when I installed Linux Mint, Most of the stuff was wonderful; It was not the case of screen recording.
I first wanted to record with OBS, using pretty good quality and with MP4 as output format. I recorded what I wanted to record, but when I saw... (1 Reply)
Discussion started by: Caloxeno
1 Replies
2. Shell Programming and Scripting
Hi,
Need some help with creating a file from input steam. Meaning from following command myfunc should be able to store the input stream to a file.
echo a b c | myfunc
The file thus created should have -
a
b
c
Here's what I've tried in myfunc() but didn't help -
myfunc() { cat... (3 Replies)
Discussion started by: nexional
3 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to learn as much about GRUB as I can and it's stages are stored in these types of files.
Any info or search terms is appreciated!:wall: (5 Replies)
Discussion started by: theKbStockpiler
5 Replies
4. Cybersecurity
the events done on the serial console does not get logged. I am using BSM audit.
I have enabled all audit flags. Is there anything that im missing?
Please help!! (2 Replies)
Discussion started by: chinchao
2 Replies
5. Shell Programming and Scripting
Here is what I have.
1 main program and it calls several child programs. Each child has its own log file. I want all child logs also to be appended to the main.log so that I have a single log file. I also need individual child logfiles in tact for debug purposes. Need to be able to tail one log... (4 Replies)
Discussion started by: myjunk1
4 Replies
6. Shell Programming and Scripting
Hi
I used this command:
mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \
-cache 1024 -fps 25.0 -nosound -vc ffh264 \
-demuxer 3 -dumpstream -dumpfile output.avi It's ok but...
Video Playing is very fast! Why? Is it a synch problem?
What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies
7. Programming
I have faced a problem that I use 2 file streams in a function and try to fopen() both files. Then I can't get the file descriptor. But if I just use 1 file stream and 1 fopen(), then i can get the file descriptor. Does anybody know why this happens? Thanks in advance.
... (2 Replies)
Discussion started by: ivancheung
2 Replies
8. Programming
Hi All,
I am trying to read data from two files and then compare them and only print the records on the screen that have a same ID.i.e TAGNO =CUSTOMERNO
For Eg
My Input Files are (a) Transaction (b) Customer detail
The data in file a is like:
TagNo Date Time Station... (0 Replies)
Discussion started by: rooh
0 Replies
9. UNIX for Dummies Questions & Answers
Hi Guys!
We have a RISC 6000 with an OS of AIX UNIX 4.3.2
We have several PCs with WIn 95 that can FTP files to-from the RISC using WSFTP_LE by IPSWITCH. Great product!
However, we have several users that we want to have file VIEWING ONLY capabilities without file transfer options. Too... (5 Replies)
Discussion started by: ajaco
5 Replies
Net::DBus::Error(3pm) User Contributed Perl Documentation Net::DBus::Error(3pm)
NAME
Net::DBus::Error - Error details for remote method invocation
SYNOPSIS
package Music::Player::UnknownFormat;
use base qw(Net::DBus::Error);
# Define an error type for unknown track encoding type
# for a music player service
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = $class->SUPER::new(name => "org.example.music.UnknownFormat",
message => "Unknown track encoding format");
}
package Music::Player::Engine;
...snip...
# Play either mp3 or ogg music tracks, otherwise
# thrown an error
sub play {
my $self = shift;
my $url = shift;
if ($url =~ /.(mp3|ogg)$/) {
...play the track
} else {
die Music::Player::UnknownFormat->new();
}
}
DESCRIPTION
This objects provides for strongly typed error handling. Normally a service would simply call
die "some message text"
When returning the error condition to the calling DBus client, the message is associated with a generic error code or
"org.freedesktop.DBus.Failed". While this suffices for many applications, occasionally it is desirable to be able to catch and handle
specific error conditions. For such scenarios the service should create subclasses of the "Net::DBus::Error" object providing in a custom
error name. This error name is then sent back to the client instead of the genreic "org.freedesktop.DBus.Failed" code.
METHODS
my $error = Net::DBus::Error->new(name => $error_name, message => $description);
Creates a new error object whose name is given by the "name" parameter, and long descriptive text is provided by the "message"
parameter. The "name" parameter has certain formatting rules which must be adhered to. It must only contain the letters 'a'-'Z',
'0'-'9', '-', '_' and '.'. There must be at least two components separated by a '.', For example a valid name is
'org.example.Music.UnknownFormat'.
$error->name
Returns the DBus error name associated with the object.
$error->message
Returns the descriptive text/message associated with the error condition.
$error->stringify
Formats the error as a string in a manner suitable for printing out / logging / displaying to the user, etc.
AUTHOR
Daniel P. Berrange
COPYRIGHT
Copyright (C) 2005-2011 Daniel P. Berrange
SEE ALSO
Net::DBus, Net::DBus::Object
perl v5.14.2 2011-06-30 Net::DBus::Error(3pm)