While using semget function we use the flag 0777 | IPC_CREAT or IPC_CREAT |0666 . What is the significance of these numbers and the order in which they are written ? (1 Reply)
Hi All,
I've written a shell script in which i defined two varibles
for example:
str=1.0.0.15
timeStamp=2008.03.08
now using this varibles i need to modify a text file.
The text content looks like this
************************
* packageNumber : 1.0.0.14 *
* date :... (2 Replies)
Hi Guys,
I'm new to this forum as well as to UNIX shell scripting.
I'm looking for a shellscript to query an Oracle database table and populate the result set of the query in a text file.
Could you someone help me out with a sample code?
Thanks,
Bhagat (7 Replies)
I am in a dire need of doing this job , please help from shell script or perl script. It will be highly appreciated.
Please have a look at the following INPUT file;
The first 14 rows are not of interest but I want them to be included in the output file as they are. From the row 14... (3 Replies)
Hi,
Is there any way that mysql query reads the content from a text file which has data in the below format:
1,2,3,4,5
and selects matched data from another table.
ie I have a table named xyz which has same ids as in that file.
I want this query to get count of the ids from xyz file by... (6 Replies)
Hi Experts,
I have a text exactly like below in a file:
id item_id
item_date prin_mkt_val
--------------------------- ---------------------------
------------------------------- ------------------------
... (1 Reply)
Hi. I've tried several different programs to try and solve this problem, but none of them seem to have done exactly what I want (and I need the file in a very specific format). I have a large file of DNA sequences in a multifasta file like this, with around 15 000 genes:
... (2 Replies)
Hello,
I have some text data that is in the form of multi-line records. Each record ends with the string $$$$ and the next record starts on the next line.
RDKit 2D
15 14 0 0 0 0 0 0 0 0999 V2000
5.4596 2.1267 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 ... (5 Replies)
I would like to call a .sql file from a .sh file in linux. The .sql file will contain queries to MySQL database.
I am able to call the .sql file by running .sh file in linux, but the sql query is not working. Below is my syntax. The select statement is throwing below error.
./sample.sql: line... (1 Reply)
Discussion started by: qytan
1 Replies
LEARN ABOUT OSX
rwsnoop
rwsnoop(1m) USER COMMANDS rwsnoop(1m)NAME
rwsnoop - snoop read/write events. Uses DTrace.
SYNOPSIS
rwsnoop [-jPtvZ] [-n name] [-p PID]
DESCRIPTION
This is measuring reads and writes at the application level. This matches the syscalls read, write, pread and pwrite.
Since this uses DTrace, only users with root privileges can run this command.
OPTIONS -j print project ID
-P print parent process ID
-t print timestamp, us
-v print time, string
-Z print zone ID
-n name
process name to track
-p PID PID to track
EXAMPLES
Default output,
# rwsnoop
Print zone ID,
# rwsnoop -.Monitor processes named "bash", # rwsnoop -n bash
FIELDS
TIME timestamp, us
TIMESTR
time, string
ZONE zone ID
PROJ project ID
UID user ID
PID process ID
PPID parent process ID
CMD command name for the process
D direction, Read or Write
BYTES total bytes during sample
FILE filename, if file based. Reads and writes that are not file based, for example with sockets, will print "<unknown>" as the file-
name.
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
rwsnoop will run forever until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO rwtop(1M), dtrace(1M)version 0.70 Jul 24, 2005 rwsnoop(1m)