Re: Replacement for eval
From: Icarus Sparry (usenet_at_icarus.freeuk.com)
Date: 07/14/05
- Next message: Bill Marcum: "Re: launching text editor as root"
- Previous message: nemgushov: "Replacement for eval"
- In reply to: nemgushov: "Replacement for eval"
- Next in thread: John L: "Re: Replacement for eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Jul 2005 04:48:19 GMT
On Thu, 14 Jul 2005 00:43:41 -0400, nemgushov wrote:
> In a several scripts that I have "inherited", we use the following function:
>
> function xyz {
> echo "`date` $@" >> debug.log
> eval $@
> }
>
> then use the xyz to aid in logging of other scripts/commands:
> xyz rcp .....
> xyz cp ....
> xyz mv ....
>
> I am looking for a replacement for this function. I've tried :
> script debug.log 2>&1
>
> but it's not what I'm looking for. I am looking for a wrapper for each
> individual subscript/command which timestamps each command and appends to
> the debug log.
What is wrong with your existing 'xyz' function? Why do you want to
replace 'eval'?
- Next message: Bill Marcum: "Re: launching text editor as root"
- Previous message: nemgushov: "Replacement for eval"
- In reply to: nemgushov: "Replacement for eval"
- Next in thread: John L: "Re: Replacement for eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|