placeing all work in a file form login


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting placeing all work in a file form login
# 1  
Old 10-06-2004
placeing all work in a file form login

hai

i want to place every work done by me in a file form login to logout.


ex:-

login : abc
password: xxxx


$pwd
/home/abc
$ls -l
list of files in dir
$logout



now i want to place all commands given by me in a file for later reference.
my file must contain the following commands
$cat myfile
$pwd
/home/abc
$ls -l
list of files in dir
$logout

Last edited by g_s_r_c; 10-17-2004 at 12:05 PM..
# 2  
Old 10-06-2004
I beleive there is a command called script that will log your session. I have not used the command myself but I have seen it used. See the man page.
# 3  
Old 10-31-2004
hai
yes the command script working good
now i get a new problem it is
in my system i created 2 users u1 and u2 the user u2 has given full permisions on his terminal now the 2 user has logedin in the system the user u1 wants to access all information of u2's terminal same as script command.

how done this....
# 4  
Old 11-01-2004
Quote:
in my system i created 2 users u1 and u2 the user u2 has given full permisions on his terminal now the 2 user has logedin in the system the user u1 wants to access all information of u2's terminal same as script command
That would typically depend if the user u2 has got the script command running and the output file of the script command
has got read permissions for others/group etc.

If you are trying to "see" what the commands the user is typing
you will have to make sure that the output of all the commands that he/she gives are reflected in the script command output

enc.
# 5  
Old 11-01-2004
Script is subtle

Keep in mind that the script command copies everything sent to the terminal to a file. If you are using a program that uses its own control of the cursor, like vi, the file created by script will have wierd characters. Also when you start script you initiate a new shell and your environment may differ from what you expect.
# 6  
Old 11-01-2004
The user u1 has only full permissions on u2's terminal but he has only read permission on this user and the user u2 does not using script command on this terminal so how to u1 access his terminal work.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to cut a pipe delimited file and paste it with another file to form a comma separated outputfile

Hello ppl I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt Now I have to join (paste in unix) this A2.txt with external file A3.txt to form output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies

2. Shell Programming and Scripting

Need to search a particular String form a file a write to another file using perl script

I have file which contains a huge amount of data. I need to search the pattern Message id. When that pattern is matched I need to get abcdeff0-1g6g-91g3-1z2z-2mm605m90000 to another file. Kindly provide your input. File is like below Jan 11 04:05:10 linux100 |NOTICE... (2 Replies)
Discussion started by: Raysf
2 Replies

3. SuSE

SSH issue - can't get password less login to work

Hello, I can't seem to get the password less login to work on one of my SLES 11 servers. My ssh agent lets me login to all my other servers, which are Solaris 10, RHEL 5, and SLES 11 servers. Some servers mount my home directory and others don't. The server that I'm having an issue with doesn't... (7 Replies)
Discussion started by: bitlord
7 Replies

4. Shell Programming and Scripting

[Fixed Itself!] Sending mail form script using sSMTP does not work

I have installed sSMTP and set it up to use my gmail. Sending from cli does work fine: msg file:From: test@gmail.com To test2@gmail.com Subject: test post This is a test Executing from console:ssmtp -t < msg does work fine. But from script it does not work:#!/bin/sh ssmtp -t < msg... (0 Replies)
Discussion started by: Jotne
0 Replies

5. Shell Programming and Scripting

Transpose Data form Different form

HI Guys, I have data in File A.txt RL03 RL03_A_1 RL03_B_1 RL03_C_1 RL03 -119.8 -119.5 -119.5 RL07 RL07_A_1 RL07_B_1 RL07_C_1 RL07 -119.3 -119.5 -119.5 RL15 RL15_A_1 RL15_C_1 RL15 -120.5 -119.4 RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies

6. Shell Programming and Scripting

create txt file form data file and add some line on it

Hi Guys, I have file A.txt File A Data AK1521 AK2536 AK3164 I want create text file of all data above and write some data on each file. want Output on below folder /home/kka/out AK1521.txt Hi Welocme (3 Replies)
Discussion started by: asavaliya
3 Replies

7. Shell Programming and Scripting

Issue with form-based login

Hello, I'm trying to build a script which logins to an application and logout, where the user would input URL, credentials, no. of users, iterations etc. The objective is to test max no. of sessions our reverse proxy apache can handle. I'm trying to handle the application login and logout... (1 Reply)
Discussion started by: pdilipm
1 Replies

8. UNIX for Dummies Questions & Answers

login problem at work help!

I am working on a hp c3700 and I can logon as root but, not as myself. I get this error. The authentication file ~/ICEauthority could not be created. I'm trying to log on to a local machine. Can anyone help? (4 Replies)
Discussion started by: Jeremy Johnson
4 Replies

9. UNIX for Advanced & Expert Users

Changing Unix form to Microsoft Word form to be able to email it to someone.

Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies
Login or Register to Ask a Question