06-04-2009
Thanks, it worked
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to know how I'll be able to write a script that can goto a different dir where I don't have access to read,write and execute and also to run a commandline prompt in that dir with one file whose path has to be specified in that command.
Will I be able to do this?
Any ideas or... (2 Replies)
Discussion started by: ann_124
2 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. UNIX for Dummies Questions & Answers
I am little bit confused when the words "root directory" and "home directory" and "parent directory" are used. Can anybody explains the difference.
I am trying to list the names and protections levels and size of visible files in the root directory
would it be correct if I just typed:
ls... (2 Replies)
Discussion started by: hinman
2 Replies
4. Shell Programming and Scripting
Hello,
fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies
5. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
6. 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
7. Shell Programming and Scripting
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Discussion started by: BTKBaaMMM
2 Replies
8. Shell Programming and Scripting
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Discussion started by: Yoodit
11 Replies
9. Shell Programming and Scripting
i have directory /abcd and i want to copy all today date files in /xyz directory.
i am able to see the files by using below command but not able to understand copy.
find . -mtime -1 -type f -exec ls -l {} \; (2 Replies)
Discussion started by: learnbash
2 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 OSX
httpdstat.d
httpdstat.d(1m) USER COMMANDS httpdstat.d(1m)
NAME
httpdstat.d - realtime httpd statistics. Uses DTrace.
SYNOPSIS
httpdstat.d [interval [count]]
DESCRIPTION
This prints connection statistics for "httpd" processes, such as those from an Apache web server.
Since this uses DTrace, only users with root privileges can run this command.
EXAMPLES
Print statistics every second,
# httpdstat.d
Print every 5 seconds, 6 times,
# httpdstat.d 5 6
FIELDS
TIME time, string
NUM number of connections
GET number of GETs
POST number of POSTs
HEAD number of HEADs
TRACE number of TRACEs
NOTES
All statistics are printed as a value per interval.
This version does not process subsequent operations on keepalives.
IDEA
Ryan Matteson (who first wrote a solution to this).
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
httpdstat.d will run until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO
dtrace(1M)
version 0.70 Nov 20, 2005 httpdstat.d(1m)