Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"script" trickery
- X-seq: zsh-users 11200
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: "script" trickery
- Date: Fri, 16 Feb 2007 04:10:58 +0100 (CET)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
I am often using the command script for makeing logs of what I am
doing and what process reports what they are doing.
Unfortunately "script" does not warn you when using a filename for
the log, which already exists and overwrites that file blindly.
I tried to write a shell function for my .zshrc which first checks
for the existence of the given file and then starts script.
But that fails due to the fact that "script" seems to start a subshel
or do other trickery.
May be one of the gurus here knows a solution for this ?
Thank you ver much for any help ! :)
Keep zshing!
mcc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author