9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I can't quite find a clear answer on how to properly write a start up script. Does anybody have any ideas?? (3 Replies)
Discussion started by: Huitzilopochtli
3 Replies
2. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
3. Red Hat
Can someone please tell me how to run a fedora startup script? I read these guides and tried to do what they said with no luck.
Create a Startup Script
Custom Startup Script | Open Source Club at Ohio State University
This is what I put in my startup script.
#!/bin/bash
# chkconfig:... (6 Replies)
Discussion started by: cokedude
6 Replies
4. AIX
Hi
I need the below script to be started whenever I reboot my aix server ?
#cat cdbegin
/cdirect/cdunix/ndm/bin/cdpmgr -i /cdirect/cdunix/ndm/cfg/cbspsdb01/initparm.cfg
Please suggest how to add this to the startup ? (2 Replies)
Discussion started by: samsungsamsung
2 Replies
5. UNIX for Dummies Questions & Answers
Hello there!
I need help.
Everytime I login to my ssh, i see this:
-bash: .export: command not found
-bash: .export: command not found
-bash: .export: command not found
-bash: .export: command not found
any help ?
thanks (0 Replies)
Discussion started by: fbauto1
0 Replies
6. AIX
Guy's
What the exact steps to mention for example this script /usr/start/start.sh
to be as start up script , I want it to be automatically started when I reboot the server . (8 Replies)
Discussion started by: ITHelper
8 Replies
7. Shell Programming and Scripting
Hi all,
I am trying to modify a startup script...
The problem is that i am unable to figure out how to take inputs from the user at the startup screen and proceed with the processing accordingly...
Eg:
$ echo "this is a test" (typically this would produce the output)...
$ echo "this is a... (6 Replies)
Discussion started by: wrapster
6 Replies
8. Shell Programming and Scripting
New in Unix, I am adding a line "route add 57.14.y.y 57.14.x.x" every day after rebooting the system. Where can I add the line so during boot up (the system is re-started every day by design (???) the line is executed? (I tried the /etc/rc2.d/S90 but for some reason the line needs to be added... (2 Replies)
Discussion started by: texaspanama
2 Replies
9. UNIX for Advanced & Expert Users
hi guys,
just went thru a "how to" manual on Solaris CDE....
could any of you pleaz tell me how to restrict users from logging in at
particular times....
in linux,i wrote an access script, put in in /etc/profile and was able t o
restrict users from logging in at particular times on particular... (7 Replies)
Discussion started by: swordfish
7 Replies
Damn(3pm) User Contributed Perl Documentation Damn(3pm)
NAME
Acme::Damn - 'Unbless' Perl objects.
SYNOPSIS
use Acme::Damn;
my $ref = ... some reference ...
my $obj = bless $ref , 'Some::Class';
... do something with your object ...
$ref = damn $obj; # recover the original reference (unblessed)
... neither $ref nor $obj are Some::Class objects ...
DESCRIPTION
Acme::Damn provides a single routine, damn(), which takes a blessed reference (a Perl object), and unblesses it, to return the original
reference.
EXPORT
By default, Acme::Damn exports the method damn() into the current namespace. Aliases for damn() (see below) may be imported upon request.
Methods
damn object
damn() accepts a single blessed reference as its argument, and returns that reference unblessed. If object is not a blessed reference,
then damn() will "die" with an error.
bless reference
bless reference [ , package ]
bless reference [ , undef ]
Optionally, Acme::Damn will modify the behaviour of "bless" to allow the passing of an explicit "undef" as the target package to invoke
damn():
use Acme::Damn qw( bless );
my $obj = ... some blessed reference ...;
# the following statements are equivalent
my $ref = bless $obj , undef;
my $ref = damn $obj;
NOTE: The modification of "bless" is lexically scoped to the current package, and is not global.
Method Aliases
Not everyone likes to damn the same way or in the same language, so Acme::Damn offers the ability to specify any alias on import, provided
that alias is a valid Perl subroutine name (i.e. all characters match "w").
use Acme::Damn qw( unbless );
use Acme::Damn qw( foo );
use Acme::Damn qw( unblessthyself );
use Acme::Damn qw( recant );
Version 0.02 supported a defined list of aliases, and this has been replaced in v0.03 by the ability to import any alias for "damn()".
WARNING
Just as "bless" doesn't call an object's initialisation code, "damn" doesn't invoke an object's "DESTROY" method. For objects that need to
be "DESTROY"ed, either don't "damn" them, or call "DESTROY" before judgement is passed.
ACKNOWLEDGEMENTS
Thanks to Claes Jacobsson <claes@surfar.nu> for suggesting the use of aliases, and Bo Lindbergh <blgl@cpan.org> for the suggested
modification of "bless".
SEE ALSO
bless, perlboot, perltoot, perltooc, perlbot, perlobj.
AUTHOR
Ian Brayshaw, <ian@onemore.org>
COPYRIGHT AND LICENSE
Copyright 2003-2012 Ian Brayshaw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-14 Damn(3pm)