Re: transfering the "history" of a normal user to the su-shell possible
From: Carlos J. G. Duarte (cjgd_at_clix.pt)
Date: 02/28/04
- Next message: John W. Krahn: "Re: extracting information"
- Previous message: Carlos J. G. Duarte: "Re: sed 'n' Repeats Last Line"
- In reply to: john: "transfering the "history" of a normal user to the su-shell possible"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 00:31:38 +0000
john wrote:
> Hi,
>
> is there a way to transfer the history of a "normal user shell"
> to the "su shell" ?
>
Depends on the shell of course. You can try to point some variable that
holds the history file to the history file of the previous user.
For instance, in tcsh
$ su
# set histfile = ~user/.history
-- carlos ** http://cgd.sdf-eu.org
- Next message: John W. Krahn: "Re: extracting information"
- Previous message: Carlos J. G. Duarte: "Re: sed 'n' Repeats Last Line"
- In reply to: john: "transfering the "history" of a normal user to the su-shell possible"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|