02-18-2008
Traditionally, a SysAdmin captures Log The Standard Output (1) & The Standard Error (2) of commands of a script to a file
for example
#execute_command 2>&1 log.file
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi you all, any of you know how to monitor what is going on in another terminal?
I mean if somebody will install an application on my server remotely and I want to "watch" what he is doing. I remember that some one use the "audit" command but now I just can't remember.
thanx.:mad: (2 Replies)
Discussion started by: alex blanco
2 Replies
2. UNIX for Advanced & Expert Users
Hello all!
Is there a way or a utility to trace any kind of file changes in a particular directory on any UNIX machine?
The purpose is that in Unix, there are multiple ways of opening and making changes to a file. But internally, there must be something common (a single pipe, etc.) that is... (3 Replies)
Discussion started by: gupta_ca
3 Replies
3. Shell Programming and Scripting
Hi All........
i need a perl script that can trace the traces of the ethereal tool. PLZ help me out...............!!!!!!!!! (1 Reply)
Discussion started by: trupti_rinku
1 Replies
4. Linux
hello every one
can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end .
for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies
5. Shell Programming and Scripting
hello every one
can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end .
for example what ever command u gave... (2 Replies)
Discussion started by: shary
2 Replies
6. Shell Programming and Scripting
I normally trace a script with the ksh -x <script name> and redirect strderr to file. But if you have a script like the examble below......
vi hairy
bear=`grep bear animals`
if
then
ksh more_animals
fi
If I ksh -x hairy it won't trace "more_animals" unless I put a -x in it. Is... (1 Reply)
Discussion started by: shorty
1 Replies
7. UNIX for Dummies Questions & Answers
Hi!
Sorry for stupid questions, I'm quite unfamiliar win *nix systems
I have a script which generates the file which looks like that:
12.11.2008 06.01 0 0 0 2 2 0 0 0
12.11.2008 06.02 0 0 0 0 0 0 0 0... (3 Replies)
Discussion started by: consta.v
3 Replies
8. Shell Programming and Scripting
hey, within a shell script file I know how to turn on tracing using "-x"
#!/bin/bash -x
now I have a complicated makefile which contains lots of `command`, and i would like to trace these `command`, where shall i put the option "-x"?
thanks! (1 Reply)
Discussion started by: patiobarbecue
1 Replies
9. Shell Programming and Scripting
Is there a way to have the output from:
strace -p 10101
placed in a text file so we can download it and look it over?
Thanks
Richard (1 Reply)
Discussion started by: ukndoit
1 Replies
10. UNIX for Dummies Questions & Answers
uname -a output
Linux server.domain.com 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux
At our company, we have hundreds of employees that access this server for reporting purposes.
However, someone was familiar enough with sendmail and used it to send an... (8 Replies)
Discussion started by: abvh
8 Replies
LEARN ABOUT FREEBSD
atf-sh
ATF-SH(1) BSD General Commands Manual ATF-SH(1)
NAME
atf-sh [-s shell] -- interpreter for shell-based test programs
SYNOPSIS
atf-sh script
DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library.
atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter-
preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not
use any non-standard extensions.
The following options are available:
-s shell Specifies the shell to use instead of the value provided by ATF_SHELL.
ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes.
ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes.
ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a
specific interpreter.
EXAMPLES
Scripts using atf-sh(3) should start with:
#! /usr/bin/env atf-sh
Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode
the path to atf-sh in the script and then use the -s option afterwards as a single parameter:
#! /path/to/bin/atf-sh -s/bin/bash
ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts.
SEE ALSO
atf-sh(3)
BSD
September 27, 2014 BSD