10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am having a situation now to delete a huge number of temp files created during run times approx. 16700+ files. We have never imagined that we will get this this much big list of files during run time. It worked fine for lesser no of files in the list. But when list is huge we are... (7 Replies)
Discussion started by: mad man
7 Replies
2. Shell Programming and Scripting
Want to sftp large number of files ... approx 150 files will come to server every minute. (AIX box)
Also need make sure file has been sftped successfully...
Please let me know :
1. What is the best / faster way to transfer files?
2. should I use batch option -b so that connectivity will be... (3 Replies)
Discussion started by: vegasluxor
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Discussion started by: lost.identity
5 Replies
4. Shell Programming and Scripting
Hi All,
I have a big file which looks like this:
abc 34.32
cdf 343.45
computer 1.34
ladder 2.3422
I have some 100000 .TXT files which look like this:
computer
cdf
align
I have to open each of the text files and read the words from the text files. Then I have to look into that... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
5. Shell Programming and Scripting
Hi All,
I have searched this forum for related posts but could not find one that fits mine. I have a shell script which removes all the XML tags including the text inside the tags from some 4 million XML files.
The shell script looks like this (MODIFIED):
find . "*.xml" -print | while read... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies
6. UNIX for Dummies Questions & Answers
Hi. I need to delete a large number of files listed in a txt file. There are over 90000 files in the list. Some of the directory names and some of the file names do have spaces in them.
In the file, each line is a full path to a file:
/path/to/the files/file1
/path/to/some other/files/file 2... (4 Replies)
Discussion started by: inakajin
4 Replies
7. Shell Programming and Scripting
Hellow i have a large number of files that i want to concatenate to one. these files start with the word 'VOICE_' for example
VOICE_0000000000
VOICE_1223o23u0
VOICE_934934927349
I use the following code:
cat /ODS/prepaid/CDR_FLOW/MEDIATION/VOICE_* >> /ODS/prepaid/CDR_FLOW/WORK/VOICE
... (10 Replies)
Discussion started by: chriss_58
10 Replies
8. UNIX for Dummies Questions & Answers
I want to tar large number of files about 150k.
i am using the find command as below to create a file with all file names.
& then trying to use the tar -I command as below.
# find . -type f -name "gpi*" > include-file
# tar -I include-file -cvf newfile.tar
This i got from one of the posts... (2 Replies)
Discussion started by: crux123
2 Replies
9. Shell Programming and Scripting
Hi
on solaris and oracle 10g2, I have number of users created in Oracle, I wonder if I have a list of the usernames will it be possible to remove the users quickly ?
I want to keep the users access to system but oracle.
some thing like shell script may be ?:confused:
I am trying to... (4 Replies)
Discussion started by: upengan78
4 Replies
10. Shell Programming and Scripting
I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames
I tried the following logics
(1)
find . -name \*.dat > list
for i in `cat list` do mv $i test/ done
(2)
cat list|xargs -i mv "{}"... (7 Replies)
Discussion started by: bryan
7 Replies
strace(8) System Manager's Manual strace(8)
NAME
strace - Writes STREAMS event trace messages to standard output
SYNOPSIS
/usr/sbin/strace [mod_ID sub_ID pri_level]
DESCRIPTION
The strace command gets STREAMS event trace messages from STREAMS drivers and modules via the STREAMS log driver (strlog), and writes these
messages to standard output. You can limit the messages strace receives by specifying arguments to the command. The arguments, which must
be specified together, are the following: Specifies the STREAMS module identification number. Specifies a subidentification number (often
corresponding to a minor device). Specifies a tracing priority level. The strace command will get messages of a level equal to or less
than the value in the pri_level argument. The value of the argument must be a nonnegative integer.
You can specify all as the value for any of the arguments in the strace command line. The value all indicates that there are no restric-
tions for that argument.
You can also specify multiple sets of the command's three arguments to obtain the messages from more than one driver or module.
More than one strace process can open the STREAMS log driver at a time. When you invoke strace, the log driver compares the sets of argu-
ments from the command line with actual trace messages, returning the messages that satisfy the criteria.
STREAMS event trace messages have the following format: seqnum stdtime tickstime pri_level ntfycode mod_ID sub_ID msgtext where:
The event trace sequence number. The time the message was sent, in the format hh:mm:ss. The time the message was sent, measured in
machine ticks since the last boot. The tracing priority level as defined by the STREAMS driver or module that originates the messages.
Can be either of the following indicators: Indicates that the message has also been saved in the error log. Indicates that the message
signaled a fatal error. The module identification number of the trace message source. The subidentification number of the trace message
source. The trace message text.
The strace command runs until terminated by the user.
NOTES
Running strace with several sets of arguments can negatively affect STREAMS performance, particularly for those modules and drivers sending
the messages.
Also be aware that strace may not be able to handle a large number of messages. If drivers and modules return messages to strace too
quickly, some may be lost.
EXAMPLES
To display all trace messages received from the driver or module identified by mod_ID 28, enter: strace 28 all all To display those trace
messages from the driver or module identified by mod_ID 28 and its minor devices identified by the sub_IDs 2, 3, and 4, enter: strace 28 2
all 28 3 all 28 4 all
This command line causes messages of any tracing priority level to be displayed. To display the trace messages from the same driver or
module and sub_IDs, but limited to certain priority levels, enter: strace 28 2 0 28 3 0 28 4 1 This command line specifies that messages
from driver or module 28 and sub_IDs 2 and 3 must have a tracing priority of 0, and those from sub_ID 4 must have a tracing priority equal
to or less than 1.
RELATED INFORMATION
Commands: strclean(8), strerr(8).
Interfaces: strlog(7). delim off
strace(8)