03-26-2009
hey amitranjansahu..
your code works! thank you very much friend for your help
10 More Discussions You Might Find Interesting
1. Solaris
not sure what the problem is, when I go to /home and enter command mkdir i get this error
mkdir chris
mkdir: Failed to make directory "chris"; Operation not applicable
im root.... (3 Replies)
Discussion started by: csaunders
3 Replies
2. Shell Programming and Scripting
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
Discussion started by: OpenMacNews
2 Replies
3. Shell Programming and Scripting
Here is the command in question for f in $(<uploads); do .
I only want this to execute if uploads is not empty. If uploads is empty I want the script to quit, actually before the for command. If its not apparent uploads is a text file.
Chris (3 Replies)
Discussion started by: chrchcol
3 Replies
4. Shell Programming and Scripting
Hi,
I have an dir which has 50K file, some of them are empty. I want to delete the empty file from the dir. I am planning to use the following command.
ls -l | grep " 0 " | awk '{print $9}'
I can copy this to an file and then how do I use this file to delete the empty files.... Any help... (2 Replies)
Discussion started by: Script40
2 Replies
5. Shell Programming and Scripting
i have dir called stock1. it has some 2000 files
How to remove/empty the dir in one shot?
i tried this command,but its not working
rmdir stock1/* stock1/.* (4 Replies)
Discussion started by: ali560045
4 Replies
6. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies
7. Solaris
I have an HP Proliant DL380 with Intel Processors that I recently loaded Solaris 10 with latest patches on it. I'm trying to do a ufsdump to an HP DAT 40 tape drive via SCSI, but I can't get it to do anything because /dev/rmt is empty. I've tried the following with luck:
touch /reconfigure,... (7 Replies)
Discussion started by: cvaughn
7 Replies
8. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
9. Shell Programming and Scripting
My implementation:
I have a script Caller.sh that runs in the background that continuously calls the following scripts:
createtext.sh
createtext2.sh
createtext3.sh
Each of these scripts does the following (but with different text file names):
#! /bin/bash
... (1 Reply)
Discussion started by: etranman1
1 Replies
10. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT DEBIAN
ost_refobject
ost::RefObject(3) Library Functions Manual ost::RefObject(3)
NAME
ost::RefObject -
A reference countable object.
SYNOPSIS
#include <object.h>
Public Member Functions
virtual void * getObject (void)=0
The actual object being managed can be returned by this method as a void and then recast to the actual type.
Protected Member Functions
RefObject ()
The constructor simply initializes the count.
virtual ~RefObject ()
The destructor is called when the reference count returns to zero.
Protected Attributes
unsigned refCount
Friends
class RefPointer
Detailed Description
A reference countable object.
This is used in association with smart pointers (RefPointer).
Author:
David Sugar dyfet@gnutelephony.org Object managed by smart pointer reference count.
Constructor & Destructor Documentation
ost::RefObject::RefObject () [inline], [protected]
The constructor simply initializes the count.
virtual ost::RefObject::~RefObject () [protected], [virtual]
The destructor is called when the reference count returns to zero. This is done through a virtual destructor.
Member Function Documentation
virtual void* ost::RefObject::getObject (void) [pure virtual]
The actual object being managed can be returned by this method as a void and then recast to the actual type. This removes the need to
dynamic cast from RefObject and the dependence on rtti this implies.
Returns:
underlying object being referenced.
Friends And Related Function Documentation
friend class RefPointer [friend]
Member Data Documentation
unsigned ost::RefObject::refCount [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::RefObject(3)