opentrace.stp scripts which are tracing
open() system calls. They should print following information in one line:
- Call context: name of executable file, process ID, user and group IDs of user and group which are executing process.
- Path to file which should be opened.
A string containing
- Return value of system call
tee[939(0:0)] open("/tmp/test", O_WRONLY|O_APPEND|O_CREAT) = 3
Bit flags values are presented in following table:
||bits 0-1 are not set|
Test script that your created by experimenting with redirection to file or a pipe with
# cat /etc/inittab > /tmp/test # cat /etc/inittab >> /tmp/test # cat /etc/inittab | tee /tmp/test # cat /etc/inittab | tee -a /tmp/test
In Solaris 11
open() system call was replaced with more generic
Optional: Modify your scripts so only files that have "/etc" in their path will be shown.