log file of programs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers log file of programs
# 1  
Old 04-07-2003
log file of programs

if i have a program (example admintool), if i want to keep a log of what i did in admintool,
can i do this admintool > admintool_log.

i have tried but the system just waits there....
then i did a kill and see the file.
the file has the main menu screen...

basically, i want to keep a log of what is being done, chosen (in programs not only admintool) for those programs which dont keep a log.

thanks
yls177
# 2  
Old 04-08-2003
I'm not exactly sure how to do what you want to do, but what's going on with the way you're doing it now is all output is being directed to admintool_log. So the menu that would normally display onscreen is being written into the file. And the apparent hangup is most likely just the program waiting for you to type in your option from the menu.. which you can't see! Smilie
# 3  
Old 04-08-2003
use sam

You can add your own applications to your SAM type tool. On HPUX, I can add tools. If you have HP or Sun they both have a Help tool that is either a tui or gui.


Also, I believe you can script a daemon that will capture the command line each time you execute a command. it would have to be in the startup scripts and in /etc/inittab and have respawn enabled.
# 4  
Old 04-08-2003
gulp..... that looks tough.. went to sam, but didnt see anything like type tool kind of stuff

what i want to achieve.. like say oracle.

is it possible to have a log file of whatever i did in svrmgrl. some applicatoins have already did that into their own programs. However, for some, they dont.. so i was thinking as UNix pple like us, we can come up with anything?

thanks
yls177
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies

2. UNIX for Dummies Questions & Answers

Read same file simultaneously with two different programs

Hi all, I was just wondering if there are any consequences, or if its a problem to have a multiple scripts parsing (reading) the same file simultaneously. For example, I have file.txt with lots of information. cat script1.sh grep "awesome" file1.txt > awesome.txt cat script2.sh grep -v... (4 Replies)
Discussion started by: torchij
4 Replies

3. Programming

Makefiles for different programs

I have several programs in several directories and want to use make to build the executables. What I have done is to put the main programs in their own directory together with a makefile to build the program. Then I am thinking of having another makefile residing in the directory above so I can run... (1 Reply)
Discussion started by: kristinu
1 Replies

4. Shell Programming and Scripting

File maintenance programs/scripts ala logrotate

Hi all, Before I start writing my own file maintenance script, maybe one such program/scripts already exist somewhere :-) Am looking for a file maintenance script/application that is configurable that I can use to process files under certain criteria, for example, removing files that are... (4 Replies)
Discussion started by: newbie_01
4 Replies

5. UNIX for Dummies Questions & Answers

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies

6. UNIX for Dummies Questions & Answers

help with calling programs

Hi. I have a problem in running a program in linux system. This program (damaver.l86) is in the path /home/shenk/damaver/, and it needs to call another program (supcomb.l86) in another path /home/shenk/supcomb/. I tried to modified the .bash_profile, but it didn't work. The error message is always... (1 Reply)
Discussion started by: shenk
1 Replies

7. UNIX for Dummies Questions & Answers

What programs access shared library file

I was curious how to tell which programs are accessing a file (libobjc.A.dylib) in /usr/lib This file seems to be the culprit in a bunch of Safari crashes, and I just wanted to know if and what other programs use it. Also, I was curious what a good way to find out what files are being written... (4 Replies)
Discussion started by: glev2005
4 Replies

8. Shell Programming and Scripting

Config file use in Shell Programs...

I wanted to know the format everyone uses for cfg files that are called by shell programs. I do mostly sh and ksh scripts and many times I'm modifying an existing script to do another task. Recently I have been making my scripts more generic and using configuration files to hold uniq details.... (3 Replies)
Discussion started by: tomas
3 Replies

9. Shell Programming and Scripting

shell programs

how to write pipe for finding out the login names and login time of the users whose login name begins with p. (1 Reply)
Discussion started by: rameshparsa
1 Replies

10. UNIX for Dummies Questions & Answers

Where did my programs go?

I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software. Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Discussion started by: helvetica
3 Replies
Login or Register to Ask a Question