06-12-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to suppress the output to the screen. I am appending to a file so do not need the output on the screen in the CLI environment.
eg.
cat $HOME/somefile >> $HOME/anotherfile
I am doing this a number of times with SQL output files so I can look at the finished file not on the screen in the... (3 Replies)
Discussion started by: jagannatha
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
One of our application is producing log files. But if we open the log file in vi or less or view mode, it shows all the special characters in it. The 'cat' shows correctly but it shows only last page. If I do 'cat' <file_name> | more, then again it shows special characters.
... (1 Reply)
Discussion started by: divakarp
1 Replies
3. Shell Programming and Scripting
I am using this command
find . -type f -mmin "+$t" > holder
Unfortunatley that is also printing files that begin with a period. Such as .bash_history.
What can I do to supress files that begin with a period? (1 Reply)
Discussion started by: chrchcol
1 Replies
4. UNIX for Advanced & Expert Users
Hi All
this is a simple script
#! /bin/bash
FileCnt=`ls -lrt $DIR/* | wc -l`
echo $FileCnt
how could i escape the error msg if there are no files in $DIR
ls: /home/sayantan/test/files/cnt/*: No such file or directory
0
Looking forward for a quick reply
Regards, Newbie (2 Replies)
Discussion started by: newbie07
2 Replies
5. Shell Programming and Scripting
Hi
I have a script which connects to oracle using sqlplus
if ! check_sqlplus "$ORACLE_SID" ; then
echo "Unable to use sqlplus for sid $ORACLE_SID"
return 1
else
echo "attempting to connect to database"
echo $ORACLE_HOME
echo $ORACLE_SID
echo "Status before entering... (2 Replies)
Discussion started by: xiamin
2 Replies
6. Shell Programming and Scripting
Hi,
I am trying to run a script using awk and sed a few times.
The script itself seems to work fine but in a final awk statement it throws up a warning:
awk: warning: escape sequence `\.' treated as plain `.'
script:
... (3 Replies)
Discussion started by: HugoDarley
3 Replies
7. Shell Programming and Scripting
Hi Team ,
I want supress the meaning of * while passing it as parameter.
I have file which contains file format and destination directory.
let say abc* |/home/xyz
I had function which will read these values and pass it to another function.
Code looks like below
func1 ()
{... (6 Replies)
Discussion started by: gvkumar25
6 Replies
8. Shell Programming and Scripting
Hi,
I was looking for a simple code to suppress the text between 2 characters. the characters can be of same kind like "*" or "(" and ")". The number of characters are not consistent and could vary.
How can I suppress the text between 2 characters?
Example:
Input : Hello (Within Bracket)... (8 Replies)
Discussion started by: ahmedwaseem2000
8 Replies
9. Shell Programming and Scripting
I am running the ETL job to passing the database username,pssswd positional arguments to shell script (bash) and how can we suppress/hide the password from ps command. (2 Replies)
Discussion started by: pimmit22043
2 Replies
10. Shell Programming and Scripting
Hello,
I know this isn't exactly a shell script question but I'm not sure where else to post it.
I am running a java program out of a shell script. There are times when I get an error like,
"java.lang.ArrayIndexOutOfBoundsException: 22
at blah, blah
at blah, blah
... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
trace(5) File Formats Manual trace(5)
Name
trace - system call tracer device
Description
The file is the system call trace device. It supports the following system calls: and The device supports 16 (configurable in as TR_USRS)
simultaneous users. It uses an 8192-byte buffer for trace records. The choice of which system calls to trace is done with the system call.
The call is used for efficient reading of the device. The call uses an 8192-byte buffer and returns when the buffer is 60% full. It is
required that the user use a buffer the same size as the system buffer size defined in as TR_BUFSIZE. All operations are defined in the
header file, The calls are:
--------------------------------
ioctl arg (pointer to)
--------------------------------
IOTR_GETOFF int a
IOTR_GETON int a
IOTR_GETALL int a
IOTR_GETPIDS int a[10]
IOTR_GETUIDS int a[10]
IOTR_GETSYSC int a[10]
IOTR_GETPGRP int a[10]
IOTR_SETOFF int a
IOTR_SETON int a
IOTR_SETALL int a
IOTR_SETPIDS int a[10]
IOTR_SETUIDS int a[10]
IOTR_SETSYSC int a[10]
IOTR_SETPGRP int a[10]
--------------------------------
Examples
A prototype example (with missing parts):
char cmd[BUFSIZ],buf[TR_BUFSIZ];
int pgrp[10],i;
fd = open("/dev/trace",0); /* open the device */
pgrp[0] = dofork(cmd); /* fork the command to trace */
for (i=1;i<TR_PGRP;i++) /* dofork sleeps 2 seconds while */
pgrp[i] = 0; /* we set up to do the trace */
i = ioctl(fd,IOTR_SETPGRP,pgrp);/* set up for the trace */
/* select code goes here */
read(fd,buf,sizeof(buf));
See Also
trace(1), close(2), ioctl(2), open(2), read(2), select(2)
trace(5)