07-07-2006
No I am not using root
I will go by your recommendation and search again
Regards
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies
2. UNIX and Linux Applications
I am trying to copy a folder and all its contents from HP Unix box to RH linux, using the following.
rsync -avz -e "ssh" /users/www/webroot/docFiles/Division/Ctry ftpuser@10.4.xxx.yz:/data/webroot/development/contentfiles/webroot/docFiles/Division/Ctry/QAfiles
And it throws a consistent... (2 Replies)
Discussion started by: FanTom
2 Replies
3. Shell Programming and Scripting
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies
4. UNIX for Advanced & Expert Users
ok guys.
I have a Centos server running a large website I own. Its is severely struggling under the load and I am having to move to a new load balanced setup.
The servers are both remote (to me) and although I can do most things admin wise in nix, I am struggling a bit to come up with a way... (1 Reply)
Discussion started by: anderow
1 Replies
5. UNIX and Linux Applications
Hi All,
One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like
W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies
6. Shell Programming and Scripting
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should... (1 Reply)
Discussion started by: amvarma77
1 Replies
7. Shell Programming and Scripting
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies
8. Shell Programming and Scripting
Hello All
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies
9. Shell Programming and Scripting
Hi,
Is there a way I can copy a file from a server to a local folder (i.e. My Documents)? can it be done by scp?
I tried this but it just rename the file as the folder it has to be transferred at.
scp -r name@some_server:/home/user/file.txt 'somehere\home\home_dir'
Thanks. (4 Replies)
Discussion started by: erin00
4 Replies
10. Shell Programming and Scripting
How do you compare one local folder and a remote folder and copy the difference to a third folder in a remote folder.e.g.
Folder A -- Is in a remote server and it has the following files
TEST1.OUT
TEST2.OUT
TEST3.OUT
Folder B --Is in a local server and it has the following files
... (5 Replies)
Discussion started by: cumeh1624
5 Replies
LEARN ABOUT NETBSD
tdelete
TSEARCH(3) BSD Library Functions Manual TSEARCH(3)
NAME
tsearch, tfind, tdelete, twalk -- manipulate binary search trees
SYNOPSIS
#include <search.h>
void *
tdelete(const void * restrict key, void ** restrict rootp, int (*compar) (const void *, const void *));
void *
tfind(const void *key, const void * const *rootp, int (*compar) (const void *, const void *));
void *
tsearch(const void *key, void **rootp, int (*compar) (const void *, const void *));
void
twalk(const void *root, void (*action) (const void *, VISIT, int));
DESCRIPTION
The tdelete(), tfind(), tsearch(), and twalk() functions manage binary search trees based on algorithms T and D from Knuth (6.2.2). The com-
parison function passed in by the user has the same style of return values as strcmp(3).
tfind() searches for the datum matched by the argument key in the binary tree rooted at rootp, returning a pointer to the datum if it is
found and NULL if it is not.
tsearch() is identical to tfind() except that if no match is found, key is inserted into the tree and a pointer to it is returned. If rootp
points to a NULL value a new binary search tree is created.
tdelete() deletes a node from the specified binary search tree and returns a pointer to the parent of the node to be deleted. It takes the
same arguments as tfind() and tsearch(). If the node to be deleted is the root of the binary search tree, rootp will be adjusted.
twalk() walks the binary search tree rooted in root and calls the function action on each node. Action is called with three arguments: a
pointer to the current node, a value from the enum typedef enum { preorder, postorder, endorder, leaf } VISIT; specifying the traversal type,
and a node level (where level zero is the root of the tree).
RETURN VALUES
The tsearch() function returns NULL if allocation of a new node fails (usually due to a lack of free memory).
tfind(), tsearch(), and tdelete() return NULL if rootp is NULL or the datum cannot be found.
The twalk() function returns no value.
SEE ALSO
bsearch(3), hsearch(3), lsearch(3)
STANDARDS
These functions conform to IEEE Std 1003.1-2001 (``POSIX.1'').
CAVEATS
The IEEE Std 1003.1-2001 (``POSIX.1'') standard does not specify what value should be returned when deleting the root node. Since implemen-
tations vary, user of tdelete() should not rely on any specific behaviour. The IEEE Std 1003.1-2008 (``POSIX.1'') revision tried to clarify
the issue with the following wording: ``the tdelete() function shall return a pointer to the parent of the deleted node, or an unspecified
non-NULL pointer if the deleted node was the root node, or a NULL pointer if the node is not found''.
BSD
April 30, 2010 BSD