03-08-2011
It is not possible since i dont have access to create folders or dir in P server...
Please tell me how to read entries into an array .
Example :-
/opt/src
/etc/sys
...
...
I need to store "/opt/src" as first element in the array and "/etc/sys" as second and so on ..
Then I need to check if the first element in the array is a dir .. then i will use email parsing to create the same in p server ..
Please suggest ..
Thanks
Renjesh Raju
Last edited by Renjesh; 03-08-2011 at 09:50 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to copy the durectory structure having subdirectories in it ... would be greatful if anyone could let me know ..
thanks in advance (6 Replies)
Discussion started by: myelvis
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Discussion started by: jhansrod
8 Replies
3. UNIX for Advanced & Expert Users
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Discussion started by: srmadab
4 Replies
4. UNIX for Dummies Questions & Answers
i have a text file as.
/database/sp/NTR_Update_Imsi_List.sql
/database/sp/NTR_Update_Imsi_Range_List.sql
/database/sp/NTR_Vlr_Upload.sql
/database/tables/StatsTables.sql
/mib/ntr.mib
/mib/ntr.v2.mib
/scripts/operations/ntr/IMSITracer.ph
/scripts/operations/ntr/IMSITracer.pl ... (3 Replies)
Discussion started by: adddy
3 Replies
5. Shell Programming and Scripting
I have the below code to recurse through a given file path. I am able to go to the leaf level once recursively but traversing out is not possible as the required varaibles don't have the values on return. Both typeset and local don't work for my variable definitions. I have the o/p of the sample... (2 Replies)
Discussion started by: avrkiran
2 Replies
6. Shell Programming and Scripting
I am trying to write a script which has to copy the directory structure from my system to another system on the network. But I dont want the files to be copied.
I think I have to start with copying all subdirectories names in a directory to a system on the network.
Here's the case:
Source... (1 Reply)
Discussion started by: firefox211
1 Replies
7. Shell Programming and Scripting
Hi Expert Team,
I performed the below piece of code to copy the latest file in the remote server's directory to the same server's other directory.
But it is not working properly.
How can i handle this? Can you please help me..?
ssh ${REMOTE_USERID}@${REMOTE_HOSTNAME} "cp -p `ssh... (3 Replies)
Discussion started by: spkandy
3 Replies
8. UNIX for Dummies Questions & Answers
Hello Unix Gurus Who I Hope Reads This,
I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Discussion started by: mbl
0 Replies
9. Shell Programming and Scripting
Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems:
1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can... (2 Replies)
Discussion started by: yeestrada
2 Replies
10. Shell Programming and Scripting
Hi,
I have a serverA with Directory "/opt/app/myfiles" which is 8.5GB with more than 40000 files and 45 folders in it.
I wish to transfer the folder "/opt/app/myfiles" tree structure with all the sub-directories and skip all files to another serverB.
I would appreciate a command that... (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT PLAN9
exportfs
EXPORTFS(4) Kernel Interfaces Manual EXPORTFS(4)
NAME
exportfs, srvfs - network file server plumbing
SYNOPSIS
exportfs [ -an ] [ -c ctlfile ]
srvfs name dir
DESCRIPTION
Exportfs is a user level file server that allows Plan 9 compute servers, rather than file servers, to export portions of a name space
across networks. The service is started either by the cpu(1) command or by a network listener process. An initial protocol establishes a
root directory for the exported name space. The connection to exportfs is then mounted, typically on /mnt/term. Exportfs then acts as a
relay file server: operations in the imported file tree are executed on the remote server and the results returned. This gives the appear-
ance of exporting a name space from a remote machine into a local file tree.
The -a option instructs exportfs to authenticate the user, usually because it is being invoked from a remote machine.
The -n option disallows export to user none.
The -c options specifies a network control file onto which exportfs will push the fcall line discipline. This option is intended for net-
works that do not preserve read/write boundaries.
The cpu command uses exportfs to serve device files in the terminal. The import(4) command calls exportfs on a remote machine, permitting
users to access arbitrary pieces of name space on other systems.
Srvfs uses exportfs to create a mountable file system from a name space: a subsequent mount (see bind(1)) of /srv/name will reproduce the
name space rooted at dir. One might use srvfs to enable mounting of an FTP file system (see ftpfs(4)) in several windows.
SOURCE
/sys/src/cmd/exportfs
/sys/src/cmd/srvfs.c
EXPORTFS(4)