Sponsored Content
Full Discussion: Deleting an unusual file
Top Forums Shell Programming and Scripting Deleting an unusual file Post 52075 by scmay on Wednesday 9th of June 2004 10:01:03 AM
Old 06-09-2004
cool. thx Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

unusual function refrences

I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ? CPU usage Memory usage Load procs per min Swap usage Page I/O Net I/O... (1 Reply)
Discussion started by: xbjxbj
1 Replies

2. Programming

unusual function refrences

I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ? CPU usage Memory usage Load procs per min Swap usage Page I/O ... (11 Replies)
Discussion started by: xbjxbj
11 Replies

3. Shell Programming and Scripting

very unusual question about while

is there anyway to make while run a command faster than per second? timed=60 while do command sleep 1 done i need something that can run a script for me more than one time in one second. can someone help me out here? (3 Replies)
Discussion started by: Terrible
3 Replies

4. Programming

C Calender Help - Unusual error

I'm making a program that you input the month and year, and it creates a calender for that month of that year. This is my largest project yet, and I broke it up into several source files. cal.c #include "cal.h" #include <stdio.h> main() { int month, year; scanf("%d %d", &month,... (3 Replies)
Discussion started by: Octal
3 Replies

5. Shell Programming and Scripting

Unusual Problem

what is wrong with the below script: --------------------------------------------------------------------------------- #!/bin/bash echo "Setting JrePath..." grep -w "export JrePath" /etc/profile Export_Status=$? if echo "JrePath declared" elif echo "JrePath not declared" echo... (4 Replies)
Discussion started by: proactiveaditya
4 Replies

6. HP-UX

Unusual Behavior?

Our comp-operator has come across a peculiar ‘feature'. We have this directory where we save all the reports that were generated for a particular department for only one calendar year. Currently there are 45,869 files. When the operator tried to backup that drive it started to print a flie-listing... (3 Replies)
Discussion started by: vslewis
3 Replies

7. Shell Programming and Scripting

Using Awk specify Unusual Delimiter

# echo "size(JFJF" | awk -F"size(" '{print $1}' awk: fatal: Unmatched ( or \(: /size(/ the delimiter is "size(" but i'm not sure if awk is the best tool to use to specify it. i have tried: # echo "size(JFJF" | awk -F"size\(" '{print $1}' awk: warning: escape sequence `\(' treated as... (1 Reply)
Discussion started by: SkySmart
1 Replies

8. Solaris

Unusual system bog down

Solaris 10 10/09 s10s_u8wos_08a SPARC 16cpus 128MB, uptime 150+ days, 2 db zones (Oracle 9 & 10), 3 application zones. This is from a system that was literally crawling, 60 seconds to execute a single command. I had to reboot to clear it. Data is from runs of prstat and top, and iostat. ... (3 Replies)
Discussion started by: jim mcnamara
3 Replies

9. Shell Programming and Scripting

Unusual output of sed

i have a sed command that is looking for the workds OK, WARNING and CRITICAL and add html color to those words. e.g: echo $CONSUMABLE |$SED s/OK./\<span\ style\=\"background-color\:green\;font-weight\:bold\;\"\>OK\<\\\/span\>/g the output breaks every so often and changes my output as... (10 Replies)
Discussion started by: adispi
10 Replies
Rose::Object::MixIn(3pm)				User Contributed Perl Documentation				  Rose::Object::MixIn(3pm)

NAME
Rose::Object::MixIn - A base class for mix-ins. SYNOPSIS
package MyMixInClass; use Rose::Object::MixIn(); # Use empty parentheses here our @ISA = qw(Rose::Object::MixIn); __PACKAGE__->export_tag(all => [ qw(my_cool_method my_other_method) ]); sub my_cool_method { ... } sub my_other_method { ... } ... package MyClass; # Import methods my_cool_method() and my_other_method() use MyMixInClass qw(:all); ... package MyOtherClass; # Import just my_cool_method() use MyMixInClass qw(my_cool_method); ... package YetAnotherClass; # Import just my_cool_method() as cool() use MyMixInClass { my_cool_method => 'cool' } DESCRIPTION
Rose::Object::MixIn is a base class for mix-ins. A mix-in is a class that exports methods into another class. This export process is controlled with an Exporter-like interface, but Rose::Object::MixIn does not inherit from Exporter. When you use a Rose::Object::MixIn-derived class, its import method is called at compile time. In other words, this: use Rose::Object::MixIn 'a', 'b', { c => 'd' }; is the same thing as this: BEGIN { Rose::Object::MixIn->import('a', 'b', { c => 'd' }) } To prevent the import method from being run, put empty parentheses "()" after the package name instead of a list of arguments. use Rose::Object::MixIn(); See the synopsis for an example of when this is handy: using Rose::Object::MixIn from within a subclass. Note that the empty parenthesis are important. The following is not equivalent: # This is not the same thing as the example above! use Rose::Object::MixIn; See the documentation for the import method below to learn what arguments it accepts. CLASS METHODS
import ARGS Import the methods specified by ARGS into the package from which this method was called. If the current class can already perform one of these methods, a fatal error will occur. To override an existing method, you must use the "-force" argument (see below). Valid formats for ARGS are as follows: o A method name Literal method names will be imported as-is. o A tag name Tags names are indicated with a leading colon. For example, ":all" specifies the "all" tag. A tag is a stand-in for a list of methods. See the export_tag method to learn how to create tags. o A reference to a hash Each key/value pair in this hash contains a method name and the name that it will be imported as. Use this feature to import methods under different names in order to avoid conflicts with existing methods. o "-force" The special literal argument "-force" will cause the specified methods to be imported even if the calling class can already perform one or more of those methods. o "-target_class CLASS" The special literal argument "-target-class" followed by a class name will cause the specified methods to be imported into CLASS rather than into the calling class. See the synopsis for several examples of the import method in action. (Remember, it's called implicitly when you use a Rose::Object::MixIn-derived class with anything other than an empty set of parenthesis "()" as an argument.) clear_export_tags Delete the entire list of export tags. export_tag NAME [, ARRAYREF] Get or set the list of method names associated with a tag. The tag name should not begin with a colon. If ARRAYREF is passed, then the list of methods associated with the specific tag is set. Returns a list (in list context) or a reference to an array (in scalar context) of method names. The array reference return value should be treated as read-only. If no such tag exists, and if an ARRAYREF is not passed, then a fatal error will occur. export_tags Returns a list (in list context) and a reference to an array (in scalar context) containing the complete list of export tags. The array reference return value should be treated as read-only. AUTHOR
John C. Siracusa (siracusa@gmail.com) LICENSE
Copyright (c) 2010 by John C. Siracusa. 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.10.1 2010-04-27 Rose::Object::MixIn(3pm)
All times are GMT -4. The time now is 10:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy