Visit Our UNIX and Linux User Community


History file copy


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting History file copy
# 1  
Old 10-28-2009
Data History file copy

Hi Gurus,
I have written one profile validating script and it is called from profile file while loading.

Now i would like to know how to capture commands executed by user on exit to one file . As to make simple, when i exit from su - oracle ,what all commands are written in .sh_history file should be copied to my_id_commands file . There are many users connecting as su - oracle.

I would like to call it from profile file Smilie
Thanks & Regards
Oramnts
# 2  
Old 10-28-2009
Use can make use of screen command to do this task
# 3  
Old 10-29-2009
Question

Hi,

What is screen command and is there command called screen in unix ?


Thanks
Oramnts

Previous Thread | Next Thread
Test Your Knowledge in Computers #107
Difficulty: Easy
Each Unix kernel subsystem has key features like concurrency, virtual memory, paging, and a virtual file system.
True or False?

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies

2. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies

3. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

4. HP-UX

History file

Hi Experts, Need your help in understanding the configurations related to history file. I have few questions regarding this. (i) Where I can configure the file in which command history would be stored. On my hp-ux box, for one user history is stored in .history file whereas for... (3 Replies)
Discussion started by: sai_2507
3 Replies

5. UNIX for Advanced & Expert Users

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies

6. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

Hello every body, Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris?? To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time. FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies

7. UNIX for Dummies Questions & Answers

history file

how can we view the commands that are executed in the tty1 being in tty2:confused::confused::confused: is there a way? (6 Replies)
Discussion started by: shaziafathima
6 Replies

8. Shell Programming and Scripting

history of a file

Hi every one, Plz help me, what commands are helpful to know the complete history of a file in unix . like, ls -lrt will give the group & user created & time last accessed. I need to know particularly where that file come from like from which machine it is ftp'ed. Thanks. (1 Reply)
Discussion started by: pradeep_script
1 Replies

9. Shell Programming and Scripting

File History

Hi all, A small help from u....... i just want to know is there any command to get the history of given file such as file creation date, next modified dates etc... Thank you Chanakya (2 Replies)
Discussion started by: Chanakya.m
2 Replies

Featured Tech Videos