Sponsored Content
Full Discussion: Screensaver and 'fortune'
Top Forums UNIX for Dummies Questions & Answers Screensaver and 'fortune' Post 38560 by Darkstripes on Sunday 20th of July 2003 09:35:55 AM
Old 07-20-2003
Screensaver and 'fortune'

(SuSE Linux 8.2 Personal)

I'm sure the answer to this will be simple, but it's been driving me insane for the last couple days.

SuSE 8.2 comes with a bunch of screensavers, but a handful of them just repeatedly display 'sh: line 1: fortune: command not found'. I've been scouring endlessly looking for a fortune command, but can't find one. I've found 'fortune.elc', but can't go much with it. What can I do?
 

3 More Discussions You Might Find Interesting

1. Solaris

ScreenSaver issue with Solaris 10

I have a Dell Vostro running Solaris 10 x86 and I am trying to get it to activate the screensaver when no one is logged it. However, the screensaver only seems to activate when someone logs in and then the computer locks. How would I go about fixing this problem? Any help yall can offer would be... (3 Replies)
Discussion started by: MajorJRO
3 Replies

2. UNIX for Dummies Questions & Answers

ScreenSaver into Background Question

(Keeping in mind I know very little about Unix...) When I am typing this out (without copy-pasting the whole thing) to get my screensaver onto my background: /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background I... (3 Replies)
Discussion started by: wat_up_m
3 Replies

3. Shell Programming and Scripting

two questions about incorporating fortune and java uptime into screen for a minecraft server

existing code #!/bin/bash SRC_DIR=/home/brian/mc/ DEST_DIR=/home/brian/mcbak/ SCREEN_SESSION=minecraft BACKUP_LOG=/home/brian/mcbaklog CHKBAK=$(rdiff-backup -v3 --verify ~/mcbak) BAKSZ=$(du -sh ~/mcbak|awk 'FNR == 1 {print $1}') WLDSZ=$(du -sh ~/mc/world/|awk 'FNR == 1 {print $1}')... (1 Reply)
Discussion started by: briandanielz
1 Replies
Class::Accessor::Class(3pm)				User Contributed Perl Documentation			       Class::Accessor::Class(3pm)

NAME
Class::Accessor::Class - simple class variable accessors VERSION
version 0.501 $Id: /my/cs/projects/claccl/trunk/lib/Class/Accessor/Class.pm 27922 2006-11-13T16:05:47.533928Z rjbs $ SYNOPSIS
Set up a module with class accessors: package Text::Fortune; use base qw(Class::Accessor::Class Exporter); Robot->mk_class_accessors(qw(language offensive collection)); sub fortune { if (__PACKAGE__->offensive) { .. Then, when using the module: use Text::Fortune; Text::Fortune->offensive(1); print fortune; # prints an offensive fortune Text::Fortune->language('EO'); print fortune; # prints an offensive fortune in Esperanto DESCRIPTION
Class::Accessor::Class provides a simple way to create accessor and mutator methods for class variables, just as Class::Accessor provides for objects. It can use either an enclosed lexical variable, or a package variable. This module was once implemented in terms of Class::Accessor, but changes to that module broke this relationship. Class::Accessor::Class is still a subclass of Class::Accessor, strictly for historical reasons. As a side benefit, a class that isa Class::Accessor::Class is also a Class::Accessor and can use its methods. METHODS
mk_class_accessors package Foo; use base qw(Class::Accessor::Class); Foo->mk_class_accessors(qw(foo bar baz)); Foo->foo(10); my $obj = new Foo; print $obj->foo; # 10 This method adds accessors for the named class variables. The accessor will get or set a lexical variable to which the accessor is the only access. mk_package_accessors package Foo; use base qw(Class::Accessor::Class); Foo->mk_package_accessors(qw(foo bar baz)); Foo->foo(10); my $obj = new Foo; print $obj->foo; # 10 print $Foo::foo; # 10 This method adds accessors for the named class variables. The accessor will get or set the named variable in the package's symbol table. DETAILS
make_class_accessor $accessor = Class->make_class_accessor($field); This method generates a subroutine reference which acts as an accessor for the named field. make_package_accessor $accessor = Class->make_package_accessor($field); This method generates a subroutine reference which acts as an accessor for the named field, which is stored in the scalar named "field" in "Class"'s symbol table. This can be useful for dealing with legacy code, but using package variables is almost never a good idea for new code. Use this with care. AUTHOR
Ricardo SIGNES, "<rjbs@cpan.org>" BUGS
Please report any bugs or feature requests to "bug-class-accessor-class@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. COPYRIGHT
Copyright 2004-2006 Ricardo Signes, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2006-11-13 Class::Accessor::Class(3pm)
All times are GMT -4. The time now is 03:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy